您还« 上一页123下一页 »浏览 9671 次锁定老帖子主题:spring深入源码1 简单实现ioc机制精华帖 (0) :: 良好帖 (2) :: 新手帖 (0) :: 隐藏帖 (3)作者正文zhouxingfu520等级:性别:文章: 108积分: 550来自: 广州推荐群组:struts2更多...
分类:
编程语言 时间:
2014-09-02 17:17:15
阅读次数:
198
第一步:导入三大框架的jar包(struts2.3.16.1+hibernate3.2+spring3.2.4)第二步:编写web.xml 和struts.xml和applicationContext.xml和applicationContext-service.xml和application-ac...
分类:
编程语言 时间:
2014-09-02 15:35:04
阅读次数:
300
1 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..', 2 'name'=>'My Web Application',//项目的名称 3 4 // preloading 'log' component 5 'pr...
分类:
其他好文 时间:
2014-09-02 00:07:43
阅读次数:
325
首先jsp页面有一ul用于展现tree
1.extends是json-default,表示返回json对象格式。
2.result中param的name为root,里面设置的值就是action中要返回的JSON对象...
分类:
其他好文 时间:
2014-09-01 22:50:13
阅读次数:
264
struts2commons-logging-1.0.4.jar 主要用于日志处理freemarker-2.3.8.jar 模板相关操作需要包ognl-2.6.11.jar ognl表达示所需包,xwork-2.0.7.jar xwork核心包struts2-core-2.0.14.jar stru...
分类:
编程语言 时间:
2014-09-01 19:20:53
阅读次数:
269
1、通过属性传参数(Attr)UserAction.javapackagecom.bebig.struts2.user.action;importcom.opensymphony.xwork2.ActionSupport;publicclassUserActionextendsActionSuppo...
分类:
其他好文 时间:
2014-09-01 17:28:33
阅读次数:
225
Struts2 Interceptors 详解Struts2请求与响应的流程图:1、Struts2的整个生命周期开始于来自客户端的request请求,然后通过servlet容器执行相应的filter(此过程体现设计模式中的责任链模式)。2、FilterDispatcher被调用,它通过查找Actio...
分类:
其他好文 时间:
2014-09-01 17:19:03
阅读次数:
159
首次应用Struts2进行开发1、下载Struts 2 在Struts 2 官网下载:http://struts.apache.org ,下载struts-2.3.16.3-all.zip 。2、添加Struts 2 .jar文件 将struts-2.3.16.3-all.zip 中 lib 目.....
分类:
其他好文 时间:
2014-09-01 17:14:33
阅读次数:
197
1. 在struts.xml中加入 来打开struts中的DMI功能,调用方法为userAction!add解决使用Struts2.3.16 出现There is no Action mapped for namespace [/user] and action name [user!add] as...
分类:
其他好文 时间:
2014-09-01 15:17:13
阅读次数:
349
Struts2 在项目中用到的核心是拦截器interceptor,OGNL(Object Graph navigation Language)对象图导航语言(用来操作ValueStack里面的数据),Value Stack和ActionContext。strut2是基于WebWork,WebWork...
分类:
其他好文 时间:
2014-09-01 13:49:53
阅读次数:
492