I'm happy to live!

          Develop with pleasure!

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

          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監聽器,最新版本的不知道為什么需要Spring,但是不加就錯誤!
          <listener>
          <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
          </listener>   回復  更多評論
            

          主站蜘蛛池模板: 壶关县| 洛扎县| 安溪县| 湘潭县| 阳谷县| 兴海县| 玉田县| 东海县| 米泉市| 新竹市| 乐都县| 清水县| 重庆市| 苏尼特右旗| 凌源市| 永昌县| 龙游县| 阿拉善左旗| 桦川县| 陆川县| 东光县| 青冈县| 岳普湖县| 衢州市| 台江县| 阳城县| 平陆县| 桂平市| 临湘市| 兰州市| 连南| 吉林省| 宣化县| 六安市| 保康县| 原阳县| 漯河市| 崇仁县| 闵行区| 新晃| 桃园市|