This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Web-App Structure

 
rakesh sugirtharaj
Ranch Hand
Posts: 151
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Can anyone tell me the the structure my web-app should have. i mean, where i should place my web.xml, jsp's, tld's and tag handler classes and other stuff.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This isn't really Tomcat specific and would do better in the Servlets forum.

In my signature, there is a link to the servlet spec.
In it you will find a very good description of the directory structure that a web app needs to have.

Also, if you go to our CodeBarn, under the servlets section, there are sample applications, packed as war files that you can simply drop into the webapps directory of a running instance of Tomcat. They will be unpacked and deployed to your machine.

You will then have sample web applications running on your machine that have a proper directory structure, and deployment descriptor with mapped servlets.

Hope this helps.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic