This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Web-App Structure Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Web-App Structure" Watch "Web-App Structure" New topic
Author

Web-App Structure

rakesh sugirtharaj
Ranch Hand

Joined: Dec 16, 2007
Posts: 151
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.


Cheers!
RSR
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

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.


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Web-App Structure
 
Similar Threads
WEB-INF access from a servlet in Weblogic
Doubt with Taglib
JSP cannot locate a method in a class i have imported
How to create a war file.
The absolute uri problem