aspose file tools
The moose likes Servlets and the fly likes Run servlet class without using WEB-INF folder? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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: 12271
    
    1
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


Java Resources at www.wbrogden.com
Bruce Jin
Ranch Hand

Joined: Sep 20, 2001
Posts: 666
Thanks Bill for the reply.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Run servlet class without using WEB-INF folder?
 
Similar Threads
deployment environment can only have complied file?
Servlet not called - Error in web.xml
Access Problem in JSP
unable to start servlet
JSP Compiling Error