wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes role name in servelt element 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 "role name in servelt element" Watch "role name in servelt element" New topic
Author

role name in servelt element

Shreyas Reddy
Ranch Hand

Joined: Oct 09, 2003
Posts: 49
I am confused about the two diff role-names int he servlet element.Can someone please explain. Also what is role-link? I looked at the Servelt 2.3 specifications already.
Thx
-----------------------------------------------
<servlet>
<servlet-name>Test</servlet-name>
<servket-class>examples.testServlet</servlet-class>
<run-as>
<role-name> ROLE-ONE</role-name>
</run-as>
<security-role-ref>
<role-name>ROLE-TWO</role-name>
<role-link>WHAT???ANOTHER-ROLE-NAME</role-link>
</security-role-ref>
</servlet>
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
Shreyas,
<security-role-ref> provides a mapping between hard-coded role-name in servlet code and the actual role values that are used in the deployment environment.
<role-name> <- hard-coded inside servlet
<role-link> <- role name defined in servlet container.
If possible, please refer to p150 of mannning boook (SCWCD exam study kit listing 9.3) for more detailed info.

Originally posted by Shreyas Reddy:
I am confused about the two diff role-names int he servlet element.Can someone please explain. Also what is role-link? I looked at the Servelt 2.3 specifications already.
Thx
-----------------------------------------------
<servlet>
<servlet-name>Test</servlet-name>
<servket-class>examples.testServlet</servlet-class>
<run-as>
<role-name> ROLE-ONE</role-name>
</run-as>
<security-role-ref>
<role-name>ROLE-TWO</role-name>
<role-link>WHAT???ANOTHER-ROLE-NAME</role-link>
</security-role-ref>
</servlet>


not so smart guy still curious to learn new stuff every now and then
 
wood burning stoves
 
subject: role name in servelt element
 
Similar Threads
doubt in security role ref
Contradiction in servlet spec
Q:security-role-ref
request.isUerInRole()
security-role-ref element