Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat - Where to put servlets

 
Gregg Bolinger
GenRocket Founder
Ranch Hand
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to place your servlets in WEB-INF/classes of a sub-folder of webapps.
 
Matthew Phillips
Ranch Hand
Posts: 2676
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15302
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahhh, thanks Matthew!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic