struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Raible <matt_rai...@yahoo.com>
Subject RE: Form-based Authentication using Struts
Date Mon, 30 Jul 2001 14:07:52 GMT
Yes, please see below:

  <login-config>
	<auth-method>FORM</auth-method>
	<realm-name>Security</realm-name>
	<form-login-config>
		<form-login-page>/signIn</form-login-page>
		<form-error-page>/signInError</form-error-page>
	</form-login-config>
  </login-config>

--- "Geddes, Mark (ANTS)" <mark.geddes@ants.co.uk> wrote:
> Does your web.xml contain a <login-config> declaration?
> 
> 
> -----Original Message-----
> From: Matt Raible [mailto:matt_raible@yahoo.com]
> Sent: 30 July 2001 12:53
> To: struts-user@jakarta.apache.org
> Subject: Form-based Authentication using Struts
> 
> 
> I am implementing form-based authenication and have a couple of questions.
> 
> I have all my JSP's setup so they can be accessed with no extension.  I am
> also
> using a DefaultAction class so these JSP's can be accessed via a .do
> extension.
> 
> Can you send me ideas on how you implemented form-based authentication with
> struts and the .do extension?
> 
> Here are the my entries in web.xml:
> 
> <!-- Standard Action Servlet Mapping -->
>   <servlet-mapping>
>     <servlet-name>action</servlet-name>
>     <url-pattern>*.do</url-pattern>
>   </servlet-mapping>
> 
>   <security-constraint>
>     	<web-resource-collection>
> 	        <web-resource-name>LDAPSecurity</web-resource-name>
> 		<description>LDAP-controlled Security</description>
> 	        <url-pattern>/*.do</url-pattern>
>     	    <http-method>GET</http-method>
> 	        <http-method>POST</http-method>
>     	</web-resource-collection>
> 
>     	<auth-constraint>
> 		<description>no description</description>
> 	        <role-name>Employees</role-name>
>     	</auth-constraint>
> 
>     	<user-data-constraint>
> 		<description>no description</description>
> 	        <transport-guarantee>NONE</transport-guarantee>
>     	</user-data-constraint>
>    </security-constraint>
> 
> Should this work?  I can't seem to get it to.
> 
> Thanks,
> 
> Matt
> 
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
> 
> 
> ***************************************************************************
> This email message contains confidential information for the above addressee
> only.  If you are not the intended addressee you must not disclose or use the
> information in any manner whatsoever.
> 
> Any opinion or views contained in this email message are those of the sender,
> do not represent those of the Company in any way and reliance should not be
> placed upon its contents.
> 
> Unless otherwise stated this email message is not intended to be
> contractually binding.  Where an Agreement exists between our respective
> companies and there is conflict between the contents of this email message
> and the Agreement then the terms of that Agreement shall prevail.
> 
> Abbey National Treasury Services plc. Registered in England. Registered
> Office:  Abbey House, Baker Street, London NW1 6XL.  Company Registration No:
> 2338548.  Regulated by the SFA
> ***************************************************************************


__________________________________________________
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/

Mime
View raw message