Hi my dear friends,
I am using form based, declarative security in my
J2EE Web-Application,
and I use this constraint in web.xml file:
<web-app>
<display-name>teststrutsweb</display-name>
<welcome-file-list>
<welcome-file>/welcome.jsp</welcome-file>
</welcome-file-list>
<security-constraint>
<web-resource-collection>
<web-resource-name>RequestingPages</web-resource-name>
<url-pattern>/inside/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.jsp</form-login-page>
<form-error-page>/login-error.jsp</form-error-page>
</form-login-config>
</login-config>
</web-app>
but when I run it in
tomcat, for all of page (are secure and not secure), "the page can not be desplay" 404 error message be display,
is anyone know why this problem occured?
thanks very much
regards