• Post Reply Bookmark Topic Watch Topic
  • New Topic

Complete web.xml file in XML format  RSS feed

 
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.
 
Author and ninkuma
Marshal
Posts: 66690
167
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
Posts: 66690
167
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.

 
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.
 
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.
 
These are the worst of times and these are the best of times. And this is the best tiny ad:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!