File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes role of web.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "role of web.xml" Watch "role of web.xml" New topic
Author

role of web.xml

varungoyal goyal
Ranch Hand

Joined: May 31, 2006
Posts: 37
what is web.xml,and what is its role and importance of web.xml??
thnx
Arafat Nalkhande
Ranch Hand

Joined: Jul 20, 2006
Posts: 51
web.xml is called the deployment descriptor.
All the servlets that are to be used in teh context are to be declared inside this file along with their URL patterns. Then the filter declaration and stuff like that boes into it.
Its basically the central configuration point for the context that you are deploying


I want to be myself, but a better myself.<br />~ SCJP 1.4 (91%), SCWCD 1.4 (86%) ~
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12836
    
    5
The required contents of web.xml and their uses are laid out in minute detail in the servlet API. You can get the full api as a pdf document here.
Any programmer working with servlets should have a copy.
Bill
 
Consider Paul's rocket mass heater.
 
subject: role of web.xml