i18n.properties not found

Upload core product.
Post Reply
webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

i18n.properties not found

Post 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

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: i18n.properties not found

Post by support »

No, it must be relative to document base (i.e. the place where HTML/JavaScript is loaded).

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: i18n.properties not found

Post 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?

webrunner
Posts: 25
Joined: Thu Oct 15, 2009 10:23 am

Re: i18n.properties not found

Post 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.

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: i18n.properties not found

Post by support »

Thanks for the feedback.

Post Reply