aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question about deployment descriptor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "question about deployment descriptor" Watch "question about deployment descriptor" New topic
Author

question about deployment descriptor

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
Which are mandatory elements of the web-resouce-collection element?
1) web-resource-name
2) url-pattern
3) http-method
4) auth-constraint
I think 1) web-resource-name is right because of <!ELEMENT web-resource-collection (web-resource-name, description?,
url-pattern*, http-method*)>.
but the answer is 1) and 2), why?


SCJP<br />SCWCD<br />SCEA
Jose Velarde
Ranch Hand

Joined: Sep 11, 2002
Posts: 78
I agree. Only the name identifying a resource, web-resource-name, is required. The element url-pattern is optional.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: question about deployment descriptor