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 Tomcat - Where to put servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat - Where to put servlets" Watch "Tomcat - Where to put servlets" New topic
Author

Tomcat - Where to put servlets

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Sorry that I am such an ignornat on this Tomcat and servlet stuff, but I am trying to learn. Anway, what folder in the Tomcat Directory do I put my servlets I create? I read that there should be a Servlet directory, but the only one created by default is in the examples folder. Can I just create one under my ROOT folder and put them in there? Or does it matter?


GenRocket - A Test Data Generation Platform
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
You need to place your servlets in WEB-INF/classes of a sub-folder of webapps.


Matthew Phillips
Matthew Phillips
Ranch Hand

Joined: Mar 09, 2001
Posts: 2676
In the webapps folder there is a folder called examples. I would recommend taking a look at the directory structure in it.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15286
    
    6

Ahhh, thanks Matthew!!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat - Where to put servlets
 
Similar Threads
Tomcat installation on Windows2000 Server
Basic Servlet Question
Servlet not Found problem!
Tomcat Restarting
can connect to localhost but not domain