Hello Nikola,
thanks for your comments.
My login.jsp is nothing far off from the routine :
<html> <body> <form method="POST" action="j_security_check" name="loginForm"> <input type="text" name="j_username" /> <input type="password" name="j_password" /> <input type="submit" value='Login'> </form> </body> </html>
I suppose there is no room for misinterpretation in case of different browsers.
One thing I forgot to mention is : This login still worked with Firefox 0.8 and I have
this problem also when I try to login to websites on the net
In IE I never came across this problem.
Is there anything I can do in terms of defining the authentication in the web-xml ?
If it helps the relevant part in the web.xml looks like this:
<security-constraint>
<web-resource-collection>
<web-resource-name> Entire Application </web-resource-name>
<url-pattern>/*</url-pattern>
<http-method>GET</http-method>
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>member</role-name>
</auth-constraint>
</security-constraint>
<security-role><role-name>0</role-name>
</security-role><login-config> <auth-method> FORM </auth-method> <realm-name>My Club_Members</realm-name> <form-login-config> <form-login-page>/login.jsp </form-login-page> <form-error-page>/error.jsp</form-error-page> </form-login-config> </login-config>
The request string looks on both browsers the same.
Regards,
Peter
Peter Neu wrote:
Hello everybody,
I'm using form authentication to log on the users to my website. Until now I was using Mozilla Firefox for developement but now I came across this problem that Firefox doesn't allow a clean log in and always redirects to the error.jsp. The authentication is correct because it works with the IE.
Does anyone have this problem, too ? If not this means I can't serve any Firfox clients.
Are you sure you're doing it right?
No offence, but I've seen FORMs that seemingly worked on IE, but refused to work on Mozilla and vice versa. Your FORM should (or must, depending how you feel about standards) be HTML 4.0 correct.
You should also try to find out what is actually being sent dfferently. A sniffer or a filter on the Tomcat could do that. Or just direct the form to some JSP that will print out the request parameters.
Nix.
--------------------------------------------------------------------- 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]
