tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: [OT] applets in webapps
Date Tue, 09 Oct 2007 13:49:30 GMT
Hash: SHA1


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/  

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
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message