This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question ID: 1040752413078

 
Bhushan Jawle
Ranch Hand
Posts: 249
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 285
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 249
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic