Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

<Security-role> in web.xml

 
Daniel Rutledge
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can <security-role> have more than one <role-name> in web.xml according to the current j2ee specification? I've seen different answers in different books and I can't seem to find a correct documentation online. Thank you, Dan.
 
Hasnain Javed Khan
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Daniel,

Daniel Rutledge wrote:Can <security-role> have more than one <role-name> in web.xml according to the current j2ee specification? I've seen different answers in different books and I
can't seem to find a correct documentation online. Thank you, Dan.


you can find the Specs for Servlet 2.4 here Spec Link

You can refer to chapter SRV.13 Deployment Descriptor. As far as I understood, you can have multiple <security-role> elements but only one <role-name> element with in each <security-role> element (correct me if I'm wrong)

Hope that helps.

Kind Regards.
Hasnain.
 
Ankit Garg
Sheriff
Posts: 9509
22
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A security-constraint element can contain zero or one auth-constraint element, but the auth-constraint element can contain zero to many role-name elements...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic