首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

webwork在resin3.0.12上面发布之后的有关问题

2012-11-05 
webwork在resin3.0.12下面发布之后的问题我在页面里面添加了几个跳转地址 用ww子代的url标签来实现,入下:

webwork在resin3.0.12下面发布之后的问题
我在页面里面添加了几个跳转地址 用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 action="ringSort" >
</ww:url>
<ww:a href="%{url}" ><span ><span extends="webwork-default">

<interceptors>
<interceptor name="auth" 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" 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" 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" 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" 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" 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)却没有这样的问题。
1 楼 icedcoco 2007-01-10   怎么只有人浏览没有人回复呢,难道没有人遇到过这样的问题吗? 2 楼 icedcoco 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解析的话可能会有问题。 3 楼 boin 2007-01-10   我用过 resin3和spring2.0 ,没有改resin的配置,运行正常 4 楼 icedcoco 2007-01-10   恩,现在不用配置也没有问题,不过刚才的问题还是时常出现,比较郁闷,我估计是不是action的scop时效问题呢?正在看ww的interceptor里面的scop

热点排行