我在使用struts2 得codebehind 和zeroconfig的时候。
将struts2 的验证框架加上。
然后问题来了,ERROR org.apache.struts2.dispatcher.Dispatcher - Could not find action or result
我的result是通过注解来配置的。
@Results( {
@Result(name = "xx", value = "xxxxxx", type = ServletActionRedirectResult.class)
})其他result是通过codebehind的方法规则来找result的。
像input 方法 对应 ActionName-input.jsp
将struts2 的验证框架加上。
然后问题来了,ERROR org.apache.struts2.dispatcher.Dispatcher - Could not find action or result
我的result是通过注解来配置的。
@Results( {
@Result(name = "xx", value = "xxxxxx", type = ServletActionRedirectResult.class)
})其他result是通过codebehind的方法规则来找result的。
像input 方法 对应 ActionName-input.jsp
解决方案 »
- Mybatis级联问题
- no result found for action问题!高手进
- 连接数据库问题
- 如果某个class的有个属性是对象数组,请问如何用xml配置文件生成该对象的该属性?
- 在struts里,数据库的东西如何以下拉列表的形式显示出来?
- hibernate exception , help me~
- 关于struts验证问题,欢迎高手来讨论,希望不吝赐教,来者有分
- 求解:jbuilder+websphere编写j2ee时,当执行客户端时,服务器端是否会自动启动?(内祥)
- Apusic1.2b版发布,率先实现ejb2.0!
- spring的IOC
- 急,问一下acegi框架应该怎么配置?
- 禁止jdk升级
* Result (JSP, FreeMarker, etc) location by naming conventions
* Class name to URL naming convention
* Package name to namespace convention
* SEO compliant URLs (i.e. my-action rather than MyAction)
* Action name overrides using annotations
* Interceptor overrides using annotations
* Namespace overrides using annotations
* XWork package overrides using annotations
* Default action and result handling (i.e. /products will try com.example.actions.Products as well as com.example.actions.products.Index)The Convention Plugin should require no configuration to use. Many of the conventions can be controlled using configuration properties and many of the classes can be extended or overridden.
首先谢谢Landor2004的回帖
不过我现在不能把codebehind换成convention
希望各位能帮我找出用codebehind 来使用验证框架