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>   回復  更多評論
            

          主站蜘蛛池模板: 新乐市| 运城市| 莲花县| 盐山县| 江油市| 舒兰市| 宜昌市| 云南省| 镇巴县| 邯郸县| 克什克腾旗| 阿鲁科尔沁旗| 临湘市| 南江县| 五指山市| 大英县| 新乡市| 濉溪县| 宁德市| 鄂托克前旗| 开鲁县| 栾城县| 华宁县| 九龙坡区| 庐江县| 怀来县| 灌阳县| 沧源| 鹤峰县| 温宿县| 晋江市| 罗平县| 山阴县| 井冈山市| 仁怀市| 阜康市| 吉木乃县| 营口市| 射阳县| 镇平县| 武义县|