File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "WEB-INF" Watch "WEB-INF" New topic


Muhammad Uzair Baig

Joined: Mar 02, 2004
Posts: 12

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

Joined: Mar 22, 2000
Posts: 13037
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.
I agree. Here's the link:
subject: WEB-INF
It's not a secret anymore!