Are you going directly to the login page? If so then you need to go to a
page in that's listed as being secure. You will then be forwarded to the
login page. When you've logged in successfully then you will be forwarded to
the page you originally requested.
Hamish

> -----Original Message-----
> From: Sloan Seaman [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 13, 2003 3:48 PM
> To: [EMAIL PROTECTED]
> Subject: Form based security
> 
> 
> I'm attempting to do form based security and I keep getting a 
> 404 error when
> I click the submit button.
> 
> I'm guessing I'm missing some type of configuration in the 
> server.xml.....
> 
> The form I am using is:
> <form method="POST" action="j_security_check">
>   <input type="text" name="j_username"/>
>   <input type="password" name="j_password"/>
>   <input type="submit" value="Submit">
> </form>
> 
> 
> And I have the following in my web.xml
>  <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>
> 
> Can anyone help me out here?
> 
> --
> Sloan
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to