action跳转到jsp页面后的执行问题。

bmj 2010-01-12 02:14:34
一个工程,通过STRUTS配置文件从action里面跳转到了一个jsp页面,可是跳转到jsp页面后把页面执行完后没有效果显示出来,就直接跳转到http://192.168.0.109:8088/index.jsp?isFirst=1这个地址了,各位大虾能给分析下么。。。
...全文
364 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
hoojo 2010-01-12
  • 打赏
  • 举报
回复
有过滤器的可能,也有可能是验证失败后。跳转的。
xuluo77421 2010-01-12
  • 打赏
  • 举报
回复
有可能是拦截器的问题
  • 打赏
  • 举报
回复
struts1....忘了。
crazylaa 2010-01-12
  • 打赏
  • 举报
回复
把java代码注释掉看看会不会乱跳,不乱跳就是你的代码问题了。
bmj 2010-01-12
  • 打赏
  • 举报
回复
代码就这么点。。。
</head>
<body border=20 class="bodybg" onload="" bottommargin="0"
rightmargin="0" topmargin="0" leftmargin="0">



<form name="Assetlist" Method="POST" action="fileview.jsp"
target="_self">
<div
style="position: absolute; left: 0; top: 0; z-index: 1; width: 100%"
id="div1" nam="div1">
<table background="<%=request.getContextPath()%>/image/tiledown.gif"
height="32" width="100%">
<tr>
<td width="100%">
<table width="100%" border="0">
<tr>
<td nowrap="nowrap"><%=vaLine.writeLine(202, true)%></td>
<td align='right' nowrap width='100%'><%=strOption%></td>
</tr>
</table>
</td>
</tr>
</table>
</div>
<br>
<br>
<%
int iOptionModel = -999;
String sModel = (String) session.getAttribute("g_iOption");
try {
iOptionModel = Integer.parseInt(sModel);
} catch (Exception e) {
}

try {
session.setAttribute("DisplayLine", "1");
ViewArch va = new ViewArch(session, out, request);
String strCondition = "id=" + shebeifileid;
va.writeArchList(202, strCondition);
System.out.println("after va.writearchlist!");
} catch (Exception e) {
e.printStackTrace();
}
%>
</form>
</body>
</html>

va.writeArchList(202, strCondition);是用来画表格的,利用java类来生成html语句。
aaxuelian 2010-01-12
  • 打赏
  • 举报
回复
fileview.jsp 有跳换的代码吧,检查一下...
水中影子 2010-01-12
  • 打赏
  • 举报
回复
这个,别人不好帮你,自己好好检查一下
supersalor 2010-01-12
  • 打赏
  • 举报
回复
你在 fileview.jsp 页面上设置 sysout 语句 查看一下 到底在哪里 跳到其他页面的 或者
如 ls的说的 有跳转代码

仔细检查一下
C_sdnElf 2010-01-12
  • 打赏
  • 举报
回复
fileview.jsp这个页面有没有跳转的代码?~
bmj 2010-01-12
  • 打赏
  • 举报
回复
配置文件如下:
<action input="/index.jsp" name="shebeiloginAction" path="/shebeiloginAction" scope="request" type="×××××××.util.ShebeiloginAction" validate="true">
<forward name="success" path="/jsp/public/fileview.jsp" />
<forward name="failure1" path="/OAI/shebeihint.jsp" />
</action>

通过ShebeiloginAction后会跳转到fileview.jsp,设置断点和控制台输出能看到fileview.jsp被执行了,可是fileview.jsp的执行效果并没有显示出来,页面直接跳转到http://192.168.0.109:8088/index.jsp?isFirst=1这个地址了,页面上出的效果是tomcat的欢迎界面。。。
phoenixYiYou 2010-01-12
  • 打赏
  • 举报
回复
猜呀?出错了,跳转到?
呵呵,你要把你有关跳页的代码都贴出来,至少!呵呵!
xuexijava 2010-01-12
  • 打赏
  • 举报
回复
听不太明白
贴代码出来看看

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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