Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a question about security-role description

 
Timber Lee
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which of the following is right?
1.
<security-role>
<role-name>administrator</role-name>
<role-name>customerservice</role-name>
</security-role>
2.
<security-role>
<role-name>customerservice</role-name>
</security-role>
<security-role>
<role-name>administrator</role-name>
</security-role>
 
k space
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
2 is correct. According to the DTD of web-app (below), you can have multiple <security-role>s, but each can have only one <role-name>.
<!ELEMENT web-app (icon?, display-name?, description?, distributable?, context-param*, filter*, filter-mapping*, listener*, servlet*, servlet-mapping*, session-config?, mimemapping*, welcome-file-list?, error-page*, taglib*, resourceenv-ref*, resource-ref*, security-constraint*, login-config?, security-role*, env-entry*, ejb-ref*, ejb-local-ref*)>
. . .
<!ELEMENT security-role (description?, role-name)>
. . .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic