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 阅读(1049) 评论(1)  编辑  收藏 所属分类: programme

评论

# re: webwork疑问?困扰我快一个星期了,还没搞定。[未登录] 2008-04-22 13:06 超越
你得在web.xml中加入spring监听器,最新版本的不知道为什么需要Spring,但是不加就错误!
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>   回复  更多评论
  


只有注册用户登录后才能发表评论。


网站导航: