Struts 2 ajax验证无法找到拦截器类jsonValidationWorkflowStack [英] Struts 2 ajax validation unable to find interceptor class jsonValidationWorkflowStack
问题描述
无法找到ref-name引用的拦截器类
jsonValidationWorkflowStack - interceptor-ref -
文件:/ C:/path/struts.xml:15:60
我的struts.xml如下所示:
< struts>
< constant name =struts.url.includeParamsvalue =all/>
< constant name =struts.devModevalue =true/>
< package name =defaultextends =struts-default>
< action name =submitFormclass =action.FormAction>
< interceptor-ref name =jsonValidationWorkflowStack/>
< result> results.jsp< / result>
< result name =input> index.jsp< / result>
< result name =error> index.jsp< / result>
< / action>
< / package>
< / struts>
为什么会发生这种情况?我正在遵循官方的struts2 ajax验证教程在。
你需要扩展 -default
包。
struts-default
了解jsonValidationWorkflowStack
。
I'm trying to implement ajax validation in my Struts 2 application. I have included struts2-json-plugin in the build path. Whenever I start the server in Eclipse, I get the following error:
Unable to find interceptor class referenced by ref-name jsonValidationWorkflowStack - interceptor-ref - file:/C:/path/struts.xml:15:60
This is what my struts.xml looks like:
<struts>
<constant name="struts.url.includeParams" value="all" />
<constant name="struts.devMode" value="true" />
<package name="default" extends="struts-default">
<action name="submitForm" class="action.FormAction" >
<interceptor-ref name="jsonValidationWorkflowStack"/>
<result>results.jsp</result>
<result name="input">index.jsp</result>
<result name="error">index.jsp</result>
</action>
</package>
</struts>
Why is this happening? I'm following the official struts2 ajax validation tutorial at.
You need to extend the "json-default"
package.
The "struts-default"
package doesn't know about the "jsonValidationWorkflowStack"
.
这篇关于Struts 2 ajax验证无法找到拦截器类jsonValidationWorkflowStack的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!