Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

role of web.xml

 
varungoyal goyal
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is web.xml,and what is its role and importance of web.xml??
thnx
 
Arafat Nalkhande
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13056
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic