File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Web-App Structure" Watch "Web-App Structure" New topic

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.

Ben Souther

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
subject: Web-App Structure
It's not a secret anymore!