> -----Original Message-----
> From: Fabio Bazzani [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 03, 2003 11:15 AM
> To: Tomcat Users List
> Subject: Tomcat 4.1.27 : error in FORM authentication
> 
> 
> I'm working with JDK 1.4.0 and tomcat 4.1.27.
> I configured JDBCRealm in server.xml for a FORM 
> authentication. When I authenticate I get a 400 error code: 

How do you 'authenticate'?  Do you browse directly to login.jsp ?   This
is the problem, if you are.  The usage scenario of container-managed
auth is:  you browse to a protected resource, the container will take
you to login.jsp, and then after that, bring you back to the originally
requested resource.  If you are browsing directly to login.jsp (the
"direct reference" part of the error message) then the container cannot
know where to send you after authentication.


> message : Invalid direct reference to form login page
> 
> description : The request sent by the client was 
> syntactically incorrect (Invalid direct reference to form login page).
> 
> in my login.jsp I put "j_security_check" in ACTION attribute 
> in FORM tag.
> 
> What's wrong ?
> 
> Thank you
> 
> Fabio Bazzani
> 


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

Reply via email to