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 閱讀(1080) 評論(1)  編輯  收藏 所屬分類: programme

          評論

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

          主站蜘蛛池模板: 金湖县| 金川县| 个旧市| 公主岭市| 新兴县| 莱芜市| 祥云县| 滦平县| 阳原县| 泗阳县| 钟祥市| 延津县| 涪陵区| 阿克苏市| 沾化县| 永康市| 秭归县| 尼玛县| 团风县| 西乌珠穆沁旗| 抚州市| 吉林省| 宿迁市| 吴忠市| 高安市| 沿河| 漯河市| 辽阳县| 白朗县| 青冈县| 湖南省| 桑日县| 容城县| 湖口县| 泸州市| 米林县| 台南市| 秦安县| 成安县| 高阳县| 广河县|