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

web.xml

hemant thakare
Greenhorn

Joined: Dec 08, 2004
Posts: 9
Hey folks...

Does anybody have a handy guide to the different elements and their significance in web.xml ?

Thanks,
Hemant.
Cai DongShan
Ranch Hand

Joined: Dec 07, 2004
Posts: 102
Hemant,

The following is my web.xml.



Best Regards,<br />DongShan<br /> <br />SCJP1.4, SCWCD1.4
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

You can refer to the servlets specification which has a nice diagram.


[My Blog]
All roads lead to JavaRanch
hemant thakare
Greenhorn

Joined: Dec 08, 2004
Posts: 9
Thank you guys...
Shivani Chandna
Ranch Hand

Joined: Sep 18, 2004
Posts: 380
* If there are not <http-method>, all are allowed

Incorrect. Then all http-method's are constrained.


/** Code speaks louder than words */
Cai DongShan
Ranch Hand

Joined: Dec 07, 2004
Posts: 102
Shivani,

Thanks for pointing out my error. In Servlet 2.4 spec P133,

If no HTTP methods are specified, then the security constraint applies to all HTTP methods


The messages in HFSJ P634 & P635 & errata confuse us.
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

That's why I never refer to other people's material
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: web.xml