Page 1 of 1

i18n.properties not found

Posted: Thu Feb 04, 2010 2:47 pm
by webrunner
Hi there,

I want to use a i18n.properties-file. I do not have a HTML-File where the applet and the javascript is places, because it is served through a wrapper like: http://myhost/serve_applet?foo=bar

The wrapper itself gets the applet code from an URL, of course, like:

http://myhost/upload/applet

So my idea was to create a internal redirection which points the i18n-file to

http://myhost/upload/applet/i18n.properties

- which does not work. Is it possible to specifiy an absolute URL for the properties-file?

Thanks

Re: i18n.properties not found

Posted: Thu Feb 04, 2010 10:15 pm
by support
No, it must be relative to document base (i.e. the place where HTML/JavaScript is loaded).

Re: i18n.properties not found

Posted: Thu Feb 04, 2010 11:01 pm
by webrunner
ok then, i rewrote some things and now this is the situation:

The applet is implemented on a page like this:

Code: Select all

http://www.myhost.com/subpage/applet
And I saved the properties file here:

Code: Select all

http://www.myhost.com/subpage/i18n.properties
I can wget the properties-file, but the error still exists. What's wrong?

Re: i18n.properties not found

Posted: Fri Feb 05, 2010 7:34 am
by webrunner
I got the solution:

The applet is embedded on a page like this:

Code: Select all

http://www.myhost.com/subpage/applet
but the jar-files are placed on a different subdomain like

Code: Select all

http://static.myhost.com/lib
and the applet expects the i18n.properties-file to be on the static-host, exactly here:

Code: Select all

http://static.myhost.com/
I think this should ne documented.

Re: i18n.properties not found

Posted: Mon Feb 08, 2010 7:27 am
by support
Thanks for the feedback.