Any resource that needs to be accessed by the browser directly should be outside of the WEB-INF directory. An applet is exactly the same as an image file in this way. The classes in WEB-INF are accessed by the container only, and only their results are presented to client browser.

That said, you could write a simple servlet that returns contents of a file in this directory. After all, one trivial "result" of a servlet is a file that's read off the disk! However, you would have difficulty making the browser interpret this as an applet, although I'm sure it's possible. This would make an interesting exercise for an advanced user, I think. But bottom line you want to avoid this!

Teja Jo wrote:
Hello everyone ,
There r some jsp files in the root directory of the web application.They
display some applets.If the applet class files are placed in a package
structure inside WEB-INF/classes - then I get a "ClassNotFoundException"
for the applet.The applet files have to be compulsorily kept in the
directory which has the jsp files,but I want the applet class files
inside WEB-INF/classes.Could u tell me a way to do it?
Regards,
Teja.



--------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it!


-- Thanks, Josh Rehman Citysearch Toolsdev, 3559


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to