File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes how can i add new servlet path in tomcat??? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Reply Bookmark "how can i add new servlet path in tomcat???" Watch "how can i add new servlet path in tomcat???" New topic
Author

how can i add new servlet path in tomcat???

Leo Tien
Ranch Hand

Joined: Sep 10, 2002
Posts: 156
my tomcat version is 4.0, when i want to use servlet , i must put it into ROOT/WEB-INF/classes/
now, i want put it into another directory. what should id do ???
please help me !!!
thanks a lot!
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 11863
Look at the way server.xml defines the context for the examples servlets for one approach.
You don't even have to get that complicated, when Tomcat 4 starts it looks for directories under webapps - if it finds a WEB-INF that has a web.xml in the right place it considers that directory to house a web application.
You might want to upgrade to Tomcat4.1.24 before getting too deeply involved in a new project.
Bill


Java Resources at www.wbrogden.com
 
IntelliJ Java IDE
 
subject: how can i add new servlet path in tomcat???
 
Threads others viewed
Web Servers for ASP / JSP
TOMCAT - Where should GIFs be placed ?
What is the classpath for Tomcat 5.5?
How can let servlet alive as long as Tomcat
Servlet question
developer file tools

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture