webwork在resin3.0.12下面发布之后的问题

作者在使用Struts2框架进行web应用开发时遇到URL跳转失效的问题,特别是使用action进行跳转时,在一定时间后点击链接会出现找不到网页的错误。通过分析代码配置和服务器日志,寻求可能的原因及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我在页面里面添加了几个跳转地址 用ww子代的url标签来实现,入下:
在total.jsp页面里面包含入下代码
<td width="20%">
<ww:url id="url" action="infoReport" >
<ww:if test="mo != null">
<ww:param name="mo"><ww:property value="mo"/> </ww:param>
</ww:if>
</ww:url>
<ww:a href="%{url}" ><span class="style2">[u]用户上下行内容查询[/u]</span></ww:a>
</td>
<td width="20%">
<ww:url id="url" action="ringSort" >
</ww:url>
<ww:a href="%{url}" ><span class="style2">[u]铃声下载排行[/u]</span></ww:a>
</td>
[i][u]<ww:a href="/test.jsp" ><span class="style2">Test</span></ww:a>[/u][/i]我打开total.jsp页面之后过大概几分钟之后再点“用户上下行内容查询”链接跳转到别的页面的时候就会报错说“找不到网页”,这个地址是用action来实现的,而我直接跳转到jsp页面就没有问题,那位老大能够解释一下,多谢了。
我的xwork.xml入下:
<package name="default" extends="webwork-default">

<interceptors>
<interceptor name="auth" class="com.airinbox.sr.interceptor.AuthenticationInterceptor"></interceptor>
</interceptors>
<global-results>
<result name="login">index.jsp</result>
</global-results>

<action name="login" class="com.airinbox.sr.action.UserAction" method="login">
<interceptor-ref name="defaultStack"/>
<result name="success" type="dispatcher">/WEB-INF/jsp/total.jsp</result>
<result name="input">index.jsp</result>
</action>
<action name="dateReport" class="com.airinbox.sr.action.DateReport">
<interceptor-ref name="auth"/>
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="validation"/>
<result name="success" type="dispatcher">/WEB-INF/jsp/total.jsp</result>
<result name="input" type="dispatcher">/WEB-INF/jsp/total.jsp</result>
<result name="login">index.jsp</result>
</action>
<!--
<interceptor-ref name="workflow"/>
-->
<action name="particularData" class="com.airinbox.sr.action.ParticularData">
<interceptor-ref name="auth"/>
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="validation"/>

<result name="success" type="dispatcher">/WEB-INF/jsp/particular.jsp</result>
<result name="input" type="dispatcher">/WEB-INF/jsp/particular.jsp</result>
<result name="login">index.jsp</result>
</action>

<action name="infoReport" class="com.airinbox.sr.action.InfoReport">
<interceptor-ref name="auth"/>
<interceptor-ref name="defaultStack"/>
<result name="success" type="dispatcher">/WEB-INF/jsp/moinfo.jsp</result>
<result name="input" type="dispatcher">/WEB-INF/jsp/moinfo.jsp</result>
<result name="login">index.jsp</result>
</action>

<action name="ringSort" class="com.airinbox.sr.action.RingSort" method="sort">
<interceptor-ref name="auth"/>
<interceptor-ref name="defaultStack"/>
<result name="success" type="dispatcher">/WEB-INF/jsp/ringsort.jsp</result>
<result name="input" type="dispatcher">/WEB-INF/jsp/ringsort.jsp</result>
<result name="login">index.jsp</result>
</action>

<action name="bonusAdmin" class="com.airinbox.sr.action.BonusAdmin" method="qury">
<interceptor-ref name="defaultStack"/>
<result name="success" type="dispatcher">/WEB-INF/jsp/zjcx.jsp</result>
<result name="input" type="dispatcher">/WEB-INF/jsp/zjcx.jsp</result>
<result name="login">index.jsp</result>
</action>
</package>

不知道是不是拦截器的问题,还是resin的问题
我在resin的stdout里面看到这样的log"[15:07:24.957] resin-file: init",是不是resin自己会定时relod配置文件呢,不过我的其他项目(没有使用webwork)却没有这样的问题。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值