浏览 2410 次
锁定老帖子 主题:关于execAndWait的问题
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-01-25
<meta http-equiv="refresh" content="2;url=<s:url includeParams='all'/>" /> 可是,发现如果url指向的页面url过长的话,不会自动刷新了。 我将url放到地址栏里可以跳转。为什么???????? 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2008-01-25
完整的wait.jsp页面:
<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"%> <%@ include file="/common/taglibs.jsp"%> <meta http-equiv="refresh" content="2;url=<s:url includeParams='all'/>" /> <style type="text/css"> .proccess {background: #yellow; border-bottom: 1px solid; border-left: 1px solid; border-right: 1px solid; border-top: 1px solid; height: 8px; margin: 3px; width: 8px} .bt_on{ background-image:url(../images/bt_on.jpg); width:149px; height:29px; background-repeat:no-repeat; color:#000; line-height:29px; text-align:center; font-size:14px;} .bt_on a{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_on a:visited{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_on a:hover{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_on a:active{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_of{ background-image:url(../images/bt_of.jpg); width:149px; height:29px; background-repeat:no-repeat; color:#000; line-height:29px; text-align:center; font-size:14px;} .bt_of a{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_of a:visited{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_of a:hover{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} .bt_of a:active{ width:149px; height:29px; color:#000; line-height:29px; text-align:center; text-decoration:none; font-size:14px;} </style> <body> <div align=center> <table align=center height="70%" valign="middle"> <tbody> <tr> <td align=middle> <p></p> <p></p> <font class=fontbig> <img src="${ctx}/images/scz.gif" width="30" height="23"><a href="<s:url includeParams='all'/>">页面载入中,请稍候</a> <!--end displaytext--> <p></p> <p></p> <p></p> <p></p> <div align=center> <form method=post name=proccess> <script language=javascript> for(i=0;i<30;i++)document.write("<input class=proccess>") </script> </form> </div> </font> </td> </tr> </tbody> </table> <div align=center> <SCRIPT language=JavaScript> <!-- var p=0,j=0; var c=new Array("lightskyblue","white") setInterval('proccess();',100) function proccess(){ document.forms.proccess.elements[p].style.background=c[j]; p+=1; if(p==30){ p=0; j=1-j; } } //--> </SCRIPT> </DIV></DIV> <DIV align=center> </div> </body> </html> |
|
返回顶楼 | |
发表时间:2008-01-25
等待页面死在那儿的时候,我是将”页面载入中,请稍候“右键中的手动刷新地址放到地址栏中就可以跳转。天呀!!!!!!这是为什么,为什么。。。。。
|
|
返回顶楼 | |
发表时间:2008-01-25
如果地址不长,可以跳转的,如果象下面的这么长的地址就会死在那儿:
http://localhost/tmp/privilege/saveRoper.do?orgCode=01054620002&roleName=test111&lcheckbox=010000000000&lcheckbox=010500000000&lcheckbox=010501000000&lcheckbox=010505000000&lcheckbox=010502000000&lcheckbox=010503000000&lcheckbox=010504000000&lcheckbox=010200000000&lcheckbox=010201000000&lcheckbox=010201070000&lcheckbox=010201030000&lcheckbox=010201060000&lcheckbox=010201020000&lcheckbox=010201050000&lcheckbox=010201010000&lcheckbox=010201040000&lcheckbox=010202000000&lcheckbox=010205020000&lcheckbox=010205010000&lcheckbox=010208000000&lcheckbox=010209000000&lcheckbox=010206000000&lcheckbox=010206010000&lcheckbox=010207000000&lcheckbox=010203000000&lcheckbox=010204000000&lcheckbox=010205000000&lcheckbox=010300000000&lcheckbox=010303000000&lcheckbox=010303010000&lcheckbox=010304000000&lcheckbox=010304010000&lcheckbox=010301000000&lcheckbox=010302000000&lcheckbox=010400000000&lcheckbox=010100000000&lcheckbox=010101000000&lcheckbox=010102000000&lcheckbox=010103000000&lcheckbox=020000000000&lcheckbox=020200000000&lcheckbox=020203000000&lcheckbox=020201000000&lcheckbox=020201010000&lcheckbox=020202000000&lcheckbox=020202010000&lcheckbox=020300000000&lcheckbox=020302000000&lcheckbox=020302010000&lcheckbox=020302040000&lcheckbox=020302030000&lcheckbox=020302020000&lcheckbox=020302050000&lcheckbox=020301000000&lcheckbox=020301010000&lcheckbox=020301020000&lcheckbox=020100000000&lcheckbox=020103000000&lcheckbox=020103020000&lcheckbox=020103010000&lcheckbox=020101000000&lcheckbox=020101020000&lcheckbox=020101010000&lcheckbox=020101040000&lcheckbox=020101030000&lcheckbox=020102000000&lcheckbox=020102010000&lcheckbox=020102040000&lcheckbox=030000000000&lcheckbox=030200000000&lcheckbox=030202000000&lcheckbox=030202030000&lcheckbox=030202020000&lcheckbox=030202010000&lcheckbox=030203000000&lcheckbox=030201040000&lcheckbox=030203030000&lcheckbox=030203020000&lcheckbox=030201050000&lcheckbox=030203010000&lcheckbox=030201000000&lcheckbox=030201030000&lcheckbox=030201020000&lcheckbox=030201010000&lcheckbox=030300000000&lcheckbox=030302000000&lcheckbox=030302010000&lcheckbox=030302020000&lcheckbox=030301000000&lcheckbox=030301010000&lcheckbox=030100000000&lcheckbox=030101000000&lcheckbox=030101020000&lcheckbox=030101010000&sub=%E4%BF%9D%E3%80%80%E5%AD%98&roleRawName=test111&roleId=824&rcheckbox=050000000000&rcheckbox=050100000000&rcheckbox=050101000000&rcheckbox=050102000000&rcheckbox=050103000000&rcheckbox=050200000000&rcheckbox=050202000000&rcheckbox=050203000000&rcheckbox=050201000000&rcheckbox=060000000000&rcheckbox=060100000000&rcheckbox=060102000000&rcheckbox=060103000000&rcheckbox=060101000000&rcheckbox=060400000000&rcheckbox=060403000000&rcheckbox=060404000000&rcheckbox=060401000000&rcheckbox=060402000000&rcheckbox=060500000000&rcheckbox=060200000000&rcheckbox=060201000000&rcheckbox=060300000000&rcheckbox=060303000000&rcheckbox=060304000000&rcheckbox=060301000000&rcheckbox=060302000000&state=modify 服务器是tomcat,谢谢各位 |
|
返回顶楼 | |
发表时间:2008-01-25
问题已经和拦截器无关。感觉只是url与meta的问题。网上好象没有相关的解决。
|
|
返回顶楼 | |
发表时间:2008-01-25
includeParams='all'将参数都放到url后面,如果表单很大,参数会很多,比如树状结构。这样会导致url过长。
url过长,可能使用meta的refresh就不会自动刷新了。另外,使用拦截器需要注意action需要实现sessionAware接口。 |
|
返回顶楼 | |
发表时间:2008-03-25
你可以自行组装一个form,将这些参数转为一些hidden域。
然后用js再进行提交。 |
|
返回顶楼 | |