tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] applets in webapps
Date Tue, 09 Oct 2007 13:49:30 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kristian,

Kristian Rink wrote:
> Unfortunately(?), the .jsp
> is never called directly but rather forward()ed to from within a
> servlet mapped to some specific URL.

Are you trying to use relative URLs for your codebase? Try using a
fully-qualified URL (starting with a '/') to point to the JAR file
instead of a relative URL. Then, it doesn't matter where you include
your applet's JSP file, since the URL will always be fully-qualified.

> /<context>/<servlet-mapping>/<classpath>/lang/de_DE.properties  

That's weird. Shouldn't the applet's JAR file contain these properties
files? When you say "<context>" you mean the actual context name, not
'<' + "context" + '>', right?

> (the file originally lives inside the applet.jar in <classpath>.lang).

What is <classpath>.lang?

> Is there any sane way of keeping applets inside a JEE web application,
> regardless on whether they're invoked directly from a .jsp or from a
> resource forwarded to from within some servlet?

As long as you've got everything in your JAR file, you should be okay.
Or, are you trying to rely on the browser plugin's ClassLoader to fetch
things like properties files off the server?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHC4bq9CaO5/Lv0PARAhFJAKC9itbjJVgu9lagd0HJR2MU2NPQzgCfT7TW
PjBTxucwSIbxIJVPcEB7xh0=
=krGh
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message