J_scurity_check 在 Firefox 4 中失败
该应用程序在Firefox3.6和所有版本的IE中运行良好。我下载了 Firefox 4 并尝试登录。当我输入用户名和密码并单击提交按钮时,它只会清除标签,当我单击刷新按钮时,它会提交表单。如果我输入错误的用户名和密码,它会重定向到错误页面。
<form method="POST" action="j_security_check">
Username: <input type="text" name="j_username"> <br/>
Password: <input type="password" name="j_password">
<input type="submit" value="Login">
</form>
日志中没有错误消息。
The applications works fine in Firefox3.6 ,all versions of IE. I downloaded Firefox 4 and tried to login. When I entered user name and password and click on submit button, It just clears the labels and when I hit on refresh button it submits the form. If I enter wrong userid and password it redirects to the error page.
<form method="POST" action="j_security_check">
Username: <input type="text" name="j_username"> <br/>
Password: <input type="password" name="j_password">
<input type="submit" value="Login">
</form>
There are no error messages in the logs.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我仍然不知道你的问题,因为你没有提供有关你的环境和应用程序的详细信息。例如,您在登录页面中使用了 javascript 或 ajax 吗?标签之间是否存在格式错误的标签?
就我而言,我使用 java-ee-5、JSF 2.0 框架(我的登录页面适用于 Firefox 3.6、Opera 11 和 IE8,但不适用于 Google Chrome)
这是我的工作登录页面(在 Firefox 3.6.17 和 4.0 上测试) .1).
我使用了与您相同的纯 html 表单,它在 Firefox 4.0.1 中也适用,甚至比 3.6.17 更好。
I still have no clue about your problem as you do not give much details about your environment and application. Do you use any javascript or ajax in your login page for example? Do you have some mal formed tags between tags?
In my case, I am using java-ee-5, JSF 2.0 framework (My login page works in Firefox 3.6, Opera 11 and IE8 but not in Google Chrome)
Here is my working login page (tested on Firefox 3.6.17 and 4.0.1).
I used the same plain html form as you and it is working for me too in Firefox 4.0.1 and even better than 3.6.17.
我也在寻求这个问题的答案。我正在开发一个在 Glassfish 中运行的 JavaEE6/JSF2 Web 应用程序(最初是 3.0.1,现在是 3.1)。
基于 FORM 的登录在 Firefox3.x 版本上工作正常,在 Safari5.0.5 上仍然工作正常,但在 Firefox4.0.1 和 Google Chrome 12.0.742.91 上“默默失败”。 (我使用的是 Mac OS X,没有检查 IE。)
提供诊断非常困难,因为没有诊断。
问:我可以为 Firefox 和/或 Google Chrome 打开任何其他日志或可能的诊断源来阐明该主题吗?
这是我的表格:
这与其他地方显示的声称与 Firefox 4 兼容的示例类似,例如此处(为了尊重此处未复制的版权条件,请检查外部链接然后返回):
在此处输入链接说明
该登录表单已被声明兼容Mozilla Firefox 4、Internet Explorer 8、Chrome 11、Safari 5、Opera 11。但我看不出它与我自己的有很大不同。
I am also seeking an answer to this problem. I am developing a JavaEE6/JSF2 web application that runs inside Glassfish (first 3.0.1 and now 3.1).
The FORM based login was working fine on Firefox3.x versions, and still works fine on Safari5.0.5, but "fails silently" on both Firefox4.0.1 and on Google Chrome 12.0.742.91. (I am on Mac OS X and have not checked IE.)
It is very difficult to provide diagnostics since there are none.
Q: Are there any other logs or possible source of diagnostics I can switch on for Firefox and/or Google Chrome that might throw light in the subject ?
Here is my form:
This is similar to examples shown elsewhere that are claimed to be compatible with Firefox 4, such as from here (to respect copyright conditions not copied here, please examine external link then return):
enter link description here
That login form is claimed to be compatible with Mozilla Firefox 4, Internet Explorer 8, Chrome 11. Safari 5, Opera 11. But I can't see that it is very different from my own.