This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
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
Author

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.
 
GeeCON Prague 2014
 
subject: WEB-INF directory