aspose file tools*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes  Question ID: 1040752413078 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 ID: 1040752413078 " Watch " Question ID: 1040752413078 " New topic
Author

Question ID: 1040752413078

Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
Your web application wants to make use of a role named 'manager', which is defined in the servlet container.
Which of the following XML fragments must occur in the deployment descriptor of your web application?
1.
<role name='manager' />
2.
<role>
<role-name>manager</role-name>
</role>
3.
<role>manager</role>
4.
<security-role>
<role-name>manager</role-name>
</security-role>
I think the answer is 4 but given answer is 2 , I don't know why , am I missing something ?
Mark Howard
Ranch Hand

Joined: Feb 14, 2001
Posts: 285
Hi Bhushan
Option 4 is correct. I'm assuming this question comes from JWebPlus? There is some errata in some of the questions, and it may be worth bringing it to the author's attention.
Mark.
Bhushan Jawle
Ranch Hand

Joined: Nov 22, 2001
Posts: 249
Thanks Mark.
Yes the question is from JWebplus. I posted it on JDiscuss as well but have had no response.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question ID: 1040752413078