DisplayTag Url too long in IE

tondayong1981 2008-06-06 11:05:12
最近在做的一个项目,使用displayTag导出报表,displaytag会取出所有request中的值.由于页面显示的信息很多,又不允许分页,因此,在导出报表的时候URL过长,该功能在firefox正常.在IE就报错,不知道怎么解决.

Microsoft Internet Explorer (Browser)
Microsoft states that the maximum length of a URL in Internet Explorer is 2,083 characters, with no more than 2,048 characters in the path portion of the URL. In my tests, attempts to use URLs longer than this produced a clear error message in Internet Explorer.
Firefox (Browser)
After 65,536 characters, the location bar no longer displays the URL in Windows Firefox 1.5.x. However, longer URLs will work. I stopped testing after 100,000 characters.
Safari (Browser)
At least 80,000 characters will work. I stopped testing after 80,000 characters.
Opera (Browser)
At least 190,000 characters will work. I stopped testing after 190,000 characters. Opera 9 for Windows continued to display a fully editable, copyable and pasteable URL in the location bar even at 190,000 characters.
...全文
133 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
tondayong1981 2008-06-07
  • 打赏
  • 举报
回复
但是displaytag默认就是get,如果修改了他的source code,以后的维护就会有问题
老紫竹 2008-06-07
  • 打赏
  • 举报
回复
一般最大的ULR长度为1024、2048左右,所以对于复杂的表单,请按照楼上2个的建议,用"POST"方式
Shine_Panda 2008-06-07
  • 打赏
  • 举报
回复
通过地址栏传参数时候(get请求) 对字符的个数是有限制的 好象是256 个 还是多少不太记得了。
如果你有大量的参数最好用post方式.
huayiluo 2008-06-07
  • 打赏
  • 举报
回复
用post!

67,550

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧