struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tiago Henrique Costa Rodrigues Alves <tiago.al...@bsb.politec.com.br>
Subject RES: Struts User Roles
Date Mon, 08 Dec 2003 20:16:28 GMT
Thanks, I will take a better look...

Tiago Henrique C. R. Alves
Analista de Sistemas
Politec - CSS
Tel: 3038-6952


-----Mensagem original-----
De: Vic Cekvenich [mailto:cekvenich_vic@basebeans.com]
Enviada em: segunda-feira, 8 de dezembro de 2003 15:57
Para: struts-user@jakarta.apache.org
Assunto: Re: Struts User Roles


Struts users Servlets Role for it's tags, etc.

This snipet is from WEB.XMl (and not Struts.xml):
  <security-constraint>
       <web-resource-collection>
       	<web-resource-name>Secure</web-resource-name>
           	<url-pattern>/do/loginPg/*</url-pattern>
			<url-pattern>/do/newsBlgCmntAddPg/*</url-pattern>
           	<url-pattern>/do/userChngPg/*</url-pattern>

      </web-resource-collection>
       <auth-constraint>
		<role-name>VALID</role-name>
         <role-name>ENHANCED</role-name>
          <role-name>GUEST</role-name>
          <role-name>EXPIRED</role-name>
          <role-name>ADMIN</role-name>

       </auth-constraint>
       <user-data-constraint>
           <transport-guarantee>NONE</transport-guarantee>
      </user-data-constraint>
  </security-constraint>



<login-config>
	<auth-method>FORM</auth-method>
	<form-login-config>
		<form-login-page>/sLogin/login.jsp</form-login-page>
		<form-error-page>/sLogin/loginBad.jsp</form-error-page>
	</form-login-config>
</login-config>


Here is a link on more WEB.XML (that works on any J2EE container -such 
as Tomcat):
http://e-docs.bea.com/wls/docs70/webapp/web_xml.html

.V

Tiago Henrique Costa Rodrigues Alves wrote:
> Where can I find Struts Roles documentation?
> 
> Tiago Henrique C. R. Alves



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message