This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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


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: 13001
    
    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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: WEB-INF
 
It's not a secret anymore!