my dog learned polymorphism*
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 Android Security Essentials Live Lessons this week in the Android 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: 15299
    
    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 - Experts at Building Test Data
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: 15299
    
    6

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