wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
wood burning stoves
 
subject: Web-App Structure
 
Similar Threads
The absolute uri problem
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.