• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Complete web.xml file in XML format

 
Gary Engebretson
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been looking for a COMPLETE example of a web.xml file. I have found snippets and narrative explantions but I would really like to have full blown example in XML format.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This seems more appropriate for the Servlets forum than JSP, so moved there.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64994
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, if by "complete" you mean "uses every conceivable setting" you are unlikely to achieve satisfaction.

If you want to see an example of a working web.xml from an actual deployed web application, I've included one below from one of my clients' application (with various names changed to protect confidentiality).

It employs a broad spectrum of settings: context params, listeners, filters and filter mappings, servlets and servlet mappings, error handling, resource referencing, and defines a JSP prelude.

 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The servlet spec goes through the entire thing as well.
Link in my signature.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DTD of the web.xml can be of help in this case.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic