浏览 3264 次
该帖已经被评为隐藏帖
|
|
---|---|
作者 | 正文 |
发表时间:2010-09-20
最后修改:2010-09-20
框架底层综合+快速开发+代码重用框架-设计(Service层) 框架底层综合+快速开发+代码重用框架-设计(Action层)
由于Action是设计业务,不好描述,所以这里不再描述,将源码赋予附件中,感兴趣的朋友自行研究。
实例代码:
@ParentPackage("struts-default") @Namespace("/security") @Results( { @Result(name = "modifyerror", type = NullResult.class, value = "/main/admin/security/user/modifyerror.html", params = { "contentType", "text/html;utf-8" }), @Result(name = "modifyok", type = NullResult.class, value = "/main/admin/security/user/modifyok.html", params = { "contentType", "text/html;utf-8" }), @Result(name = "error", type = NullResult.class, value = "/error.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "invalid.token", type = NullResult.class, value = "/invalidToken.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "input", type = NullResult.class, value = "/main/admin/security/user/edit.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "close", type = NullResult.class, value = "/main/admin/tip/close.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "complete", type = NullResult.class, value = "/main/admin/tip/success.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "list", type = NullResult.class, value = "/main/admin/security/user/list.jsp", params = { "contentType", "text/html;utf-8" }), @Result(name = "edit", type = NullResult.class, value = "/main/admin/security/user/edit.jsp", params = { "contentType", "text/html;utf-8" }) }) @Controller("userAction") public class UserAction extends ActionSupport {} 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2010-09-20
粗略看了下LZ的4个帖子,基本就是SSH+泛型
如果项目就是普通的CRUD,没有复杂业务逻辑的话,用上这个模板还是不错的 |
|
返回顶楼 | |
发表时间:2010-09-20
jl580650 写道 粗略看了下LZ的4个帖子,基本就是SSH+泛型
如果项目就是普通的CRUD,没有复杂业务逻辑的话,用上这个模板还是不错的 一般的信息管理系统都是CRUD!这样写要省去好多代码了!开发速度很快! |
|
返回顶楼 | |
发表时间:2010-09-21
不如用SpringSide
|
|
返回顶楼 | |
发表时间:2010-09-21
增删改砍掉了,开发速度会提高很多
|
|
返回顶楼 | |