浏览 4541 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2007-01-10
在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)却没有这样的问题。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2007-01-10
怎么只有人浏览没有人回复呢,难道没有人遇到过这样的问题吗?
|
|
返回顶楼 | |
发表时间:2007-01-10
问题解决了。
过程是这样的,因为我用了spring2.0,在网上看到resin3.0下面使用spring2.0的话需要在resin.conf里面另外配置xml解析“ system-property javax.xml.parsers.DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl ”和“system-property javax.xml.parsers.SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"”,我配置了之后就出现了上述的问题,刚才没办法,我把这两条去掉之后spring能启动而且也不会出现刚才的问题了,不知道为什么,很奇怪。 郁闷了我2天了,终于解决了,估计是resin使用外部配置的xml解析的话可能会有问题。 |
|
返回顶楼 | |
发表时间:2007-01-10
我用过 resin3和spring2.0 ,没有改resin的配置,运行正常
|
|
返回顶楼 | |
发表时间:2007-01-10
恩,现在不用配置也没有问题,不过刚才的问题还是时常出现,比较郁闷,我估计是不是action的scop时效问题呢?正在看ww的interceptor里面的scop
|
|
返回顶楼 | |