The roles are defined according to the wbe.xml dtd. The roles are mapped based on the Realm of your choosing which is a container dependent thing.


For more info, chapter 24 should start you in the right direction for more googling ...
http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html


-Tim

Tim Davidson wrote:
Hi,

How can you give someone a security-role?

when someone accesses a certain jsp, I want to give them a role (no authentication)
how is this possible? All of the examples I've seen require some sort of login.

eg. something like:
 user.setRole("manager");

where I have defined manager:
<security-role>
<description>A manager</description>
<role-name>manager</role-name>
</security-role>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>manager</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginError.jsp</form-error-page>
</form-login-config>
</login-config>


many thanks in advance.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to