Zsolt Koppany wrote:
>
> Hi,
>
> I try to load an Applet from a sub directory of
> "cv/WEB-INF/classes/cv/applets". The name of the applet I try to load is
> "cv.applets.GraphApplet.class". I always get the error 404. Tomcat
> displays me even the correct absolute path of the applet file that I try
> to load but it is not successful. I have the impression that it is not
> allowed to load a class file from a sub directory of WEB-INF. How could
> I configure tomcat that it can load applets from that directory or what
> would be the best solution for my problem?
>
You must realize that applet classes are loaded just like
other web browser resources such as image files. They are
loaded by normal web server processes that don't have a
thing to do with your servlet. Therefore they must reside
in a directory that the web server can serve files from.
Your impression is correct, the API specifically forbids
serving classes from WEB-INF.
--
WBB - [EMAIL PROTECTED] Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at http://www.lanw.com/java/javacert/