This week's book / license giveaways are in the JDBC and Relational Databases and Java in General forums.
We're giving away four copies each of PostGIS in Action and Java Advanced Topics Training and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes question from the mock exam.. 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 "question from the mock exam.." Watch "question from the mock exam.." New topic
Author

question from the mock exam..

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
What are the mandatory elements of the web-resource-collection element?
1. web-resource-name
2. url-pattern
3. http-method
4. auth-constrint
I think 1,2,2is correct.
The correct answer is 1,2
need expailnaton..
thanks in advance
trupti
===============================================
I think the correct answer is 1,2 and 3..
thanks
Trupti
[ October 16, 2002: Message edited by: trupti nigam ]
Andre Mermegas
Ranch Hand

Joined: Jun 20, 2001
Posts: 158
<!ELEMENT web-resource-collection(web-resource-name,description?,url-pattern*, http-method*)>
see the dtd


--=( Andre Mermegas )=--
Paul McKenna
Ugly Redneck
Ranch Hand

Joined: Jul 08, 2000
Posts: 1006
As per the More Servlets book, the http-method tag is optional. So only 1,2 are the correct choices.


Commentary From the Sidelines of history
Nikki Aniban
Greenhorn

Joined: Oct 10, 2002
Posts: 14
Doesn't the asterisk (*) mean that the tag can exist zero or more times? If that's the case, then only the <web-resource-name> tag is required. Though it doesn't make sense to declare a name without a corresponding url-pattern or http-method, I tried it and it worked.
AJAY RANA
Ranch Hand

Joined: May 30, 2002
Posts: 75
u are right.only web-resource-name is mandatory.
I normally use the trick of "find text" to find the occurence of tag in dtd.
Regards
Ajay Rana
Maha Annadurai
Ranch Hand

Joined: Oct 27, 2002
Posts: 87
The DTD link given in one of previous posts is for Servlet 2.2 spec.
SCWCD exam tests on Servlet 2.3 version.
Here is the 2.3 DTD link.
http://java.sun.com/dtd/web-app_2_3.dtd
Regards
Maha Anna
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question from the mock exam..