Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

WEB-INF

 
Muhammad Uzair Baig
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic