在springside或者说是Struts2中,对于一个entity的增删查改,一般不需要在action中一个一个属性的写request.getParamter方法获取,而是由父类的CrudActionSupport把数据和模型进行了绑定,而自定义的其他方法却不行,需要自己手动一个一个获取,很是麻烦。
今天偶然去研究了一下,发现xwork插件还是很通用的,自定义的方法也是可以进行模型绑定的,因为发现在父类中add,edit,view,list等方法中都有一个相对应的prepareXXX方法与之对应,于是自己在Action写了一个test方法,在父类中写了一个对应的prepareTest方法,重启测试,果然如我所料。
相关推荐
springside3.3.4 使用方法 ssh整合 最流行的web框架 使用说明
SpringSide使用maven的archetype插件进行项目生成,新版的archetype2.0插件比以往有了大幅提升。 SpringSide3.0在archtypes目录里存放使用Velocity语法的项目模板。
springside3.2技术开发手册介绍了零配置实现SSH等选型框架下的开发
SpringSide 2.0中文使用说明。
NULL 博文链接:https://mfan.iteye.com/blog/1808750
springside-3.2.2源码springside-3.2.2源码
springside
pom.xml配置 ...mvn install:install-file -DgroupId=org.springside -DartifactId=springside-core -Dversion=4.2.2.GA -Dfile=./springside-core-4.2.2.GA.jar -Dpackaging=jar -DgeneratePom=true
第二层:HibernateEntityDao,基于HibernateGenericDao,用泛型声明Dao所管理的Entity类,默认拥有该entity的CRUD方法。 第三层:HibernateExtendDao,基于HibernateEntityDao,主要扩展各种选择性的功能。
SpringSide4.0 Reference Manual 自己整理的官方文档,PDF格式,方便查阅,所有连接都已整理。
springside4
springside3.0.zip
SpringSide文档.chm。
springside开发全面讲解 springside集成了多项技术,不适合入门者学习,因此本资料也尽量从最简单最基础的讲起。
SpringSide4框架简单使用 sprindside4只写一个简单的DAO接口,日后再根据需要添加方法定义。不需要Dao implements
分享 江南白衣的 springside4 非常强大的Javaee 框架。 官网:http://www.springside.org.cn/ 代码:https://github.com/springside/springside4
springside参考(中文版本,强烈推荐).chm
springside-core-4.3.0.jar 最新版springside-core的jar包
springside示例quickstart的eclipse工程
Springside4 学习整理 Shiro 服务端验证