关于Struts2 API中InputConfig内methodName和resultName的使用方法
对于@InputConfig中methodName和resultName的区别很是迷惑.最后在API中找到答案了,通过做实验终于了之.
(1).Marks a action method that if it's not validated by Validationlnterceptor then execute input method or input result.
Annotation usage:The InputConfig annotation can be applied at method level.
Annotation parameters:
Parameter Required Default Notes
methodName no (2).execute this method if specific
resultName no (3).return this result if methodName not specific
(1).当验证方法没有通过时,改变默认返回的input视图
(2).methodName=====>执行指定方法
(3).resultName=====>返回result如果methodName没有指定
Eg:
@InputConfig(methodName="Tqtest",resultName="resultTest")
@InputConfig(methodName="Tqtest",resultName="resultTest") 的作用是改变默认返回的input视图 API中可查
resultName只有在methodName没写如@InputConfig(resultName="resultTest") 时才起做用
分享到:
相关推荐
网上很多有关struts2的api文档都是不全的。我经过精心整理出的struts2api文档,非常齐全。
在struts官网下的struts2中没有帮助文档,几经周折找到的API文档,包括了struts中常用jar包(struts2-core,xwork-core等)!
Struts2中文教程,Struts2API
API,Struts2的查询文档!内附说明!
Struts2 api文档
struts2 API 本文档是chm格式的Java struts2 框架的工具类
Struts2-API+Struts2中文帮助文档。 API为英文格式,帮助文档记录了Struts2各大知识点的详细代码案例,不错的参考资料
Struts2 API 以及标签手册 两个chm文件 struts-2.0.chm(English) struts2-tags-API.chm(中文)
两个struts2的api文档,文档版本比较老,不过应该可以用。
struts2官方api中文版2.5版本,很实用,希望对你有帮助
这是我做的struts2的API帮助文档。可以看我的博客是如何做的。 http://blog.csdn.net/long2010yu2010
struts2标签的api 用到的时候查一下吧 感觉挺好的
Struts2api 超值 好用 一般网上找不到的!!共享时间有限!!
深圳电信培训中心.徐海蛟老师上ssha课时候用的中文版struts api chm中文文档。 支持高级搜索,即时搜索。吐血奉送各位。
struts2 api.chm,来自struts2 官网的API。
内含struts2的一本教程及struts2的API文档
struts2apistruts2apistruts2apistruts2api
struts2-api帮助文档!详细介绍了struts2的一些新特性!收藏绝对不会后悔!!!!
struts2的api,帮助你彻底认识struts2的内部结构和工作原理
struts2和struts1 API及使用指南 chm