• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the work of web.xml in WEB-INF

 
Farrukhalee Khan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we prepare a website for hosting. The WEB-INF folder need web.xml. why? (that have differant packages/or pool connection packages)
and what would be contain of it. or where can i get it.
plz urgent....
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The short answer is because the Servlet and JSP specs require it. However, you would probably get a more complete answer in the Servlet forum, which is where I'm moving this.
Kyle
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java servlet and JSP APIs use web.xml to define just about everything in a web application environment. You have to create one youself. Go to java.sun.com and download the servlet and JSP APIs in PDF form. You can start here:
http://java.sun.com/products/servlet/
Bill
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't really need to put anything in the web.xml other than the standard header lines and the < web-app > tags. But you do have to have a web.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic