I'm happy to live!

          Develop with pleasure!

            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理 ::
            39 隨筆 :: 2 文章 :: 31 評論 :: 0 Trackbacks
          我用的是webwork最新版本2.2,,
          在頁面上輸入姓名后提交到helloWorld.action,到一個新的頁面,可interceptor不起作用,所以早前輸入的name值也為null.
          可不知為什么interceptor不起作用,請大家?guī)蛶兔?這個問題困擾我一個星期了..還是沒能解決..

          Tomcat不報錯,但顯示如下信息:
          請各位大俠幫幫忙啊,小弟先謝了...

          2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.XmlConfigurationProvider verifyInterceptor
          嚴重: Unable to load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor for interceptor name au
          towiring. This interceptor will not be available.
          Cause: Could not load class com.opensymphony.xwork.spring.interceptor.ActionAutowiringInterceptor. Perhaps it exists but
          certain dependencies are not available?
          2005-12-5 17:13:32 com.opensymphony.xwork.config.providers.InterceptorBuilder constructInterceptorReference
          嚴重: Unable to find interceptor class referenced by ref-name completeStack


          我的xwork.xml內容如下:

          <xwork>
          <include file="webwork-default.xml"/>

          <package name=
          "default" extends="webwork-default">
          <!-- Include webwork defaults (from WebWork JAR). -->
          <default-interceptor-ref name=
          "completeStack"/>

          <action name=
          "helloWorld"
          class=
          "test.HelloWorldAction">
          <result name=
          "success">hello.jsp</result>
          <result name=
          "input">name.jsp</result>
          </action>
          </package>
          </xwork>
          posted on 2005-12-05 19:31 Norsor 閱讀(1072) 評論(1)  編輯  收藏 所屬分類: programme

          評論

          # re: webwork疑問?困擾我快一個星期了,還沒搞定。[未登錄] 2008-04-22 13:06 超越
          你得在web.xml中加入spring監(jiān)聽器,最新版本的不知道為什么需要Spring,但是不加就錯誤!
          <listener>
          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
          </listener>   回復  更多評論
            

          主站蜘蛛池模板: 南涧| 米泉市| 洪雅县| 永福县| 阿拉善左旗| 南丰县| 阳东县| 佛山市| 沛县| 浑源县| 民丰县| 衡阳县| 灯塔市| 岐山县| 慈利县| 农安县| 重庆市| 南平市| 汉中市| 新巴尔虎左旗| 方正县| 河池市| 漾濞| 清水河县| 红原县| 甘德县| 富阳市| 孟津县| 上饶县| 海丰县| 通城县| 平江县| 平阴县| 宁德市| 平舆县| 鄂伦春自治旗| 木兰县| 黔东| 吴川市| 松原市| 红河县|