File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes WEB-INF 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 » Java » Servlets
Bookmark "WEB-INF" Watch "WEB-INF" New topic
Author

WEB-INF

Muhammad Uzair Baig
Greenhorn

Joined: Mar 02, 2004
Posts: 12
hello

How can i create my own WEB-INF and register it with tomcat.

Thank you
Best Regards
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12760
    
    5
Tomcat, when starting up, will recognize any directory under webapps as a web application if:
1. There is a WEB-INF subdirectory (must be upper case)
2. The WEB-INF directory has a web.xml file in the right format (which can be minimal but must be there)

See the web.xml file under webapps/examples for inspiration. You can get the definitive information on web.xml from this Sun site - be sure you get the API version that matches the Tomcat you are using.
Bill
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: WEB-INF
 
Similar Threads
Not able to view the folder contents
is it web-inf or WEB-INF
Java bean usage in JSP(s)
web.xml is not pointing to the local application
hibernate.properties not found error , But I have the file in classpath