P
pincopallo_it
Good morning,
Im getting crazy to understand where in the application Im working to I
get the autetication.
My problem is that when the user write the correct usr/pwd all works
fine; when the user write a wrong password he does not get the
/login-error.html page but it opens the login page again
In web.xml i have this
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/login-error.html</form-error-page>
</form-login-config>
</login-config>
the login.html is like this
......
<form method="POST">
<table class="colorNoMargin" border="0" cellPadding="3"
cellSpacing="1">
<tr class="testata" >
<td colspan="2">
Login al Sistema
</td>
</tr>
<tr>
<td>
Utente:
</td>
<td>
<input name="j_username" type="text">
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input name="j_password" type="password">
</td>
</tr>
</table>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Log in">
</td>
</tr>
</form>
......
Even i did not understand what happens when I click the login button.
Anybody can help ?
Thanks
Im getting crazy to understand where in the application Im working to I
get the autetication.
My problem is that when the user write the correct usr/pwd all works
fine; when the user write a wrong password he does not get the
/login-error.html page but it opens the login page again
In web.xml i have this
<login-config>
<auth-method>FORM</auth-method>
<form-login-config>
<form-login-page>/login.html</form-login-page>
<form-error-page>/login-error.html</form-error-page>
</form-login-config>
</login-config>
the login.html is like this
......
<form method="POST">
<table class="colorNoMargin" border="0" cellPadding="3"
cellSpacing="1">
<tr class="testata" >
<td colspan="2">
Login al Sistema
</td>
</tr>
<tr>
<td>
Utente:
</td>
<td>
<input name="j_username" type="text">
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input name="j_password" type="password">
</td>
</tr>
</table>
</td>
<td>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Log in">
</td>
</tr>
</form>
......
Even i did not understand what happens when I click the login button.
Anybody can help ?
Thanks