How to view Secured page using J_Security_Check ?
Dear Everyone,
In the web application, i am using Form based authentication for security...
i have configured exactly by giving login page and error page..
i have also configured <security constraint> , < login -config>...
But i receive error page while i give username and password....
Please give ur suggestions.. i will show u my code..
<security-constraint>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to beprotected -->
<url-pattern>/jack.jsp</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>user</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>Example Form-Based Authentication Area</realm-name>
<form-login-config>
<form-login-page>/index.jsp</form-login-page>
<form-error-page>/error.jsp</form-error-page>
</form-login-config>
</login-config>
<security-role>
<description>user</description>
<role-name>user</role-name>
</security-role>

