File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes http-method-omission, exception? JSR-315 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "http-method-omission, exception? JSR-315" Watch "http-method-omission, exception? JSR-315" New topic

http-method-omission, exception? JSR-315

Roy Pozarelli
Ranch Hand

Joined: Oct 17, 2009
Posts: 43
I've been prepping for CX-310-085, after having gone through the HF book, Murach Servlets and JSP book, and various specs. I was looking at the security section of JSR 315 (Java Servlet Specification). In section 13.8 Specifying Security Constraints, p. 135, it list an element of the deployment descriptor as http-method-omission as well as in section 13.8.1, p. 136. But in the subsequent example 13.8.2, p. 137, it uses http-method-exception and never seems to again use ...-omission. Is this the same thing? or a typo in the spec.? or an older version of the same idea? What would you use/recommend?

OCP Java SE 6 Programmer,
OCM Java SE 6 Developer
OCE Web Components (OCEWD)
OCE Web Services (OCEWSD)
MySQL Certified Administrator & Developer,
OMG Certified UML Prof. Fund., Int., Adv.
Ashok Kurakula

Joined: May 16, 2011
Posts: 15

The right element is http-method-omission. You can find it in the FIGURE 14-12 security-constraint Element Structure in the spec. I think this newblog(Dec 24, 2009) might help you.

I think that they initially wanted to name this element as http-method-exception, but they finally setteled with the name http-method-omission. A relativiley oldblog(Dec 16, 2008) defines this element by the name http-method-exception.

OCPJP 6, OCE Java EE 6 JSP and Servlets Developer, OCE Java EE 6 EJB Developer...
I agree. Here's the link:
subject: http-method-omission, exception? JSR-315
It's not a secret anymore!