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>

[1515 byte] By [senthil_yogaa] at [2007-11-27 9:36:43]
# 1

<form action="j_security_check" method="post">

<input type="text" name="j_username"/>

<input type="password" name="j_password"/>

</form>

Check spelling of atributte values in your login page form.

I spent 1 day solving this problem. The solution was correct spelling of "j_password" (i typed 3s)

m00dya at 2007-7-12 23:06:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

Reply to m00dy

Thank u for ur suggestions...

Every thing had been correct.., but still not working and i am receiving error page..

please give ur suggestiopns

the code is

<table border="0" cellspacing="5">

<tr>

<th align="right">Username:</th>

<td align="left"><input type="text" name="j_username"></td>

</tr>

<tr>

<th align="right">Password:</th>

<td align="left"><input type="password" name="j_password"></td>

</tr>

<tr>

<td align="right"><input type="submit" value="Login"></td>

<td align="left"><input type="reset"></td>

</tr>

</table>

senthil_yogaa at 2007-7-12 23:06:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Can any one please give ur suggestions...
senthil_yogaa at 2007-7-12 23:06:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
Your web.xml seems to be correct.Do you get error.jsp when you insert incorrect username and password combination?
m00dya at 2007-7-12 23:06:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5
Reply to m00dyThank u for ur suggestions....even though when i give the exact username and password...i am getting the error page.....
senthil_yogaa at 2007-7-12 23:06:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...