我在页面里面添加了几个跳转地址 用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">
用户上下行内容查询</span></ww:a>
</td>
<td width="20%">
<ww:url id="url" action="ringSort" >
</ww:url>
<ww:a href="%{url}" ><span class="style2">
铃声下载排行</span></ww:a>
</td>
<ww:a href="/test.jsp" ><span class="style2">Test</span></ww:a>我打开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)却没有这样的问题。
分享到:
相关推荐
WEBWORK的配置
webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程webwork教程
WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包WEBWORK的源文件压缩包
WebWork教程0.90版本次发布的是初稿部分,除了章节:“实战G-Roller-WW”、“WebWork与其它开源项目的集成”,其余章节全部完成
与下载的<<WebWork docs -- webWork 详细的说明文档>> 的文件夹合并. 这里包括了所有webWork的所有的详细说明文档, 任何有关的问题都可以在这里找到答案.
webwork源码下载
webwork中文帮助文档 webwork中文帮助文档 webwork中文帮助文档 webwork中文帮助文档 webwork中文帮助文档 webwork中文帮助文档
webwork底层源码,用于webwork框架设计
这是webwork1的jar包,还有webwork-2.2.7.jar和webwork-src-2.2.7.jar
webwork_框架文档
webWork 详细的说明文档, 由于我的上传大小有限, 这个好东西我只能是分两次上传了, 下载的人可能要辛苦一些了, 不过这些都是值得的, 将<<WebWork docs 2 -- webWork 详细的说明文档>> 也一同下载下来, 下载后两个...
webwork2.1.7
webWork中文教程
这里我们所谈及的WebWork,实际上是Webwork+XWork的总集,Webwork1.x 版本中, 整个框架采用了紧耦合的设计(类似Struts),而2.0 之后,Webwork被拆分为两个部分, 即Webwork 2.x +XWork 1.x,设计上的...
spring与webwork的集成 spring与webwork的集成
WebWork2配置WebWork2配置WebWork2配置WebWork2配置
包括webwork2.x的 具体使用步骤,见解压后“webwork使用步骤.txt” 和一个实现前后台连通的webwork具体应用的“test” 实例,将test导入eclipse的工作空间,即可正常运行
webwork中文 webwork中文参考 webwork中文资料 webwork学习资料
WebWork教程 学习WebWork很好的教材
webwork2快速入门 高级特性 实例