我用的是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>