POST方法在IE-9中转换为GET [英] POST method getting converted to GET in IE-9

查看:88
本文介绍了POST方法在IE-9中转换为GET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在JSP中有这行代码。 (我使用的是struts 1.3)



< html:form action =screening / mine.domethod =post>



< / html:form>



调用mine.do对应的动作时(使用struts-config.xml),页面正在提交作为GET而不是POST。包括所需参数在内的所有请求参数都因此而丢失。此问题仅在IE-9中出现。



当我使用其他版本的IE或任何其他浏览器时,响应保持为POST。我如何在IE-9中将响应保留为POST?



编辑:我在此观察了另一个问题。每当页面在新窗口中呈现时,都会发生此问题。其他地方,POST在IE-9中运行良好。



另外,这个问题发生在Win7 / IE-8中,但在XP / IE-8中绝对正常。与操作系统有什么关系?



任何解决方案都是有用的。



感谢!!

由于Windows 7中IE的安全设置,此问题发生。它也发生在Win-7的IE-8中。 (但在Win-XP的IE-8中工作正常)



在Windows的IE浏览器中有一个启用/禁用保护模式 7。这是Vista / Windows-7 IE中的一项新功能,默认情况下,Internet区域和本地Intranet区域(或其中任何一个区域)启用此选项。在这两个地方停用解决了这个问题。



工具 - > Internet选项 - >安全性 - > Internet /本地Intranet - >取消选中启用保护模式选项。


I have this line of code in my JSP. (I'm using struts 1.3)

<html:form action="screening/mine.do" method="post"> . . . </html:form>

When the action corresponding to mine.do is invoked (using struts-config.xml), the page is getting submitted as GET instead of POST. All the request parameters including the required ones are getting lost due to this. This issue occcurs only in IE-9.

The response remains as POST when I use other versions of IE or any other browsers. How do I make the response to remain as POST in IE-9 ?

EDIT : I observed one more issue in this. Whenever the page is rendered in a new window, this issue occurs. Other places, the POST works fine in IE-9.

Also, this issue occurs in Win7/IE-8, but works absolutely fine in XP/IE-8. Is there something to do with the OS as well???

Any solutions would be useful.

Thanks!!

解决方案

This issue was happening due to a security setting in IE in Windows 7. It also happens in IE-8 of Win-7. (But works fine in IE-8 of Win-XP)

There is an option of Enabling/Disabling protected mode in IE of Windows-7. This is a new feature present in IE of Vista/Windows-7 and this option is enabled by default for "Internet" zone and "Local Intranet" zone(or any one of them). Disabling at these 2 places solved the issue.

Tools -> Internet Options -> Security -> Internet/Local Intranet -> Uncheck on the "Enable protected mode" option.

这篇关于POST方法在IE-9中转换为GET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆