jsp页面自动跳转问题

J2EE 码拜 9年前 (2015-04-09) 786次浏览 0个评论

按返回和自动跳转是同一个路径,按返回能跳转,但是自动跳转获取不到id值怎么办
  <head>
    <base href=”<%=basePath%>”>
    
    <title>My JSP “”test.jsp“” starting page</title>
    
<meta http-equiv=”pragma” content=”no-cache”>
<meta http-equiv=”cache-control” content=”no-cache”>
<meta http-equiv=”expires” content=”0″>    
<meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
<meta http-equiv=”description” content=”This is my page”>
<!–
<link rel=”stylesheet” type=”text/css” href=”styles.css”>
–>
<meta http-equiv=refresh content=5;url=<%=”query.action?Id=<s:property value=””Id””/>” %>>
  </head>
  
  <body>
<b style=color:blue><span id=jump>5</span> 秒钟后页面将自动返回项目管理页面…<a href=”query.action?Id=<s:property value=””Id””/>”>返回</a></b>
  </body>
</html>
<script>
function countDown(secs){
jump.innerText=secs;
if(–secs>0)
setTimeout(“countDown(“+secs+” )”,1000);
}
countDown(5);
</script>

jsp页面自动跳转问题
20分
url=<%="query.action?Id=<s:property value=""Id""/>" %>

需要加<%=%>?

jsp页面自动跳转问题
引用 2 楼 shixitong 的回复:
url=<%="query.action?Id=<s:property value=""Id""/>" %>

需要加<%=%>?

去掉之后果然行了 太感谢了~~~

jsp页面自动跳转问题
符号问题。。。。。

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明jsp页面自动跳转问题
喜欢 (0)
[1034331897@qq.com]
分享 (0)

文章评论已关闭!