File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes WEB-INF directory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "WEB-INF directory" Watch "WEB-INF directory" New topic

WEB-INF directory

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 170
Is it ok to put an applet class inside WEB-INF directory. I have an applet that reads data. That data shld be in safe directory, since WEB-INF is a safe directory Im planning to put there the data.
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

The class for the applet must be downloaded to the client and run there. So I think the answer is *no*.

Because browsers cannot obtain direct access to anything under the WEB-INF directory. The applet's class files, jarred or not, should be accessible by an HTTP request.
I agree. Here's the link:
subject: WEB-INF directory
It's not a secret anymore!