GeeCON Prague 2014*
The moose likes Servlets and the fly likes Run servlet class without using WEB-INF folder? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Run servlet class without using WEB-INF folder?" Watch "Run servlet class without using WEB-INF folder?" New topic
Author

Run servlet class without using WEB-INF folder?

Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
I have servlet classes (not in jar file) in folder, say, C:\abc\xyz. Can I tell servlet engine to invoke these servlets? I know some old containers such as WebSphere 3.x allow me to do this. But with modern containers (e.g. tomcat 4.x) we always have to have a WEB-INF\classes folder to store the servlet classes. Is this true?
Thanks.


BJ - SCJP and SCWCD
We love Java programming. It is contagious, very cool, and lot of fun. - Peter Coad, Java Design

Crazy Bikes created by m-Power
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12791
    
    5
You are correct - the loose rules about running servlets have been greatly tightened up for the current API. The idea being to create a uniform environment for web applications that is independent of a particular vendor.
Bill
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Thanks Bill for the reply.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Run servlet class without using WEB-INF folder?