-
1. Re: FORM authentication, could not go to the original reques
alexlzl Apr 7, 2003 8:35 PM (in response to alexlzl)My web.xml
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
<web-app>
<display-name>Secure Application</display-name>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>Secure Realm</web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>admin</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Secure Realm</realm-name>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/loginError.html</form-error-page>
</form-login-config>
</login-config>
<security-role>
Real world admin role
<role-name>admin</role-name>
</security-role>
</web-app> -
2. Re: FORM authentication, could not go to the original reques
alexlzl Apr 8, 2003 2:38 PM (in response to alexlzl)Sorry, it was my stupid mistake. Session was invalidated somewhere in the code.