- 博客(6)
- 问答 (2)
- 收藏
- 关注
原创 Struts1和Struts2的区别和对比
Struts1和Struts2的区别和对比:Action 类:• Struts1要求Action类继承一个抽象基类。Struts1的一个普遍问题是使用抽象类编程而不是接口。• Struts 2 Action类可以实现一个Action接口,也可实现其他接口,使可选和定制的服务成为可能。Struts2提供一个ActionSupport基类去 实现 常用的接口。Action接口不是必须的...
2009-06-04 20:11:51
77
Struts2 in action读书笔记(4)
第四章 Adding workflow with interceptor(下)16. 拦截器只能通过XML文件来配置,不支持Java annotations方式。17. 在struts.xml类型的文件声明中,interceptors包含一个package中所有的拦截器和拦截器栈例如struts-default.xml文件中:[code="xml"]…… ...
2009-05-29 23:42:00
106
Struts2 in action读书笔记(3)
[b]第四章 Adding workflow with interceptor(上)[/b]1. Interceptor接口的三个方法: [code="java"]void destroy();void init();String intercept(ActionInvocation invocation) throws Exception;[/code]抽象类Abst...
2009-05-29 17:34:18
110
Struts2 in action读书笔记(2)
[b]第三章 working with struts2 actions[/b]1. Action的三个主要功能:处理请求,数据载体,返回页面的定向2. Action是用于处理业务逻辑的3. Action配置文件的package的属性,name(required)、namespace、extends、abstract(true表示定义继承的组件,而非action)4. Action配...
2009-05-27 16:42:04
104
Struts2 in action读书笔记(1)
[b]第二章 saying hello to struts2[/b]1. struts.xml是framework的入口,适用于在它的默认package中定义全局的Action例如:[code="xml"] /menu/Menu.jsp ……[/code]2. 可以在配置文件中指定空Action,即没有具体的class,Strt...
2009-05-27 16:39:54
127
扩展GEF的SelectAllAction功能
目前GEF的SelectAllAction在执行的时候忽略了了Connection Model,有时候需要Select All的时候将连线也选中,通过简单的修改即可实现这个效果[code="java"]/** * @author zhazha */public class CaseSelectAllAction extends SelectAllAction {...
2009-04-10 13:53:16
118
空空如也
tomcat不通过组播能否做session同步
2012-08-27
求教,怎么用Jacob调用Outlook
2011-02-16
TA创建的收藏夹 TA关注的收藏夹
TA关注的人