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
posted
0
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