aspose 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 The Software Craftsman this week in the Agile 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: 12913
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.
Don't get me started about those stupid light bulbs.
subject: WEB-INF