ssh
文章平均质量分 79
kevinwu629
这个作者很懒,什么都没留下…
展开
-
LookupDispatchAction的使用
org.apache.struts.actions.LookupDispatchAction类别是DispatchAction类别的子类,与DispatchAction类似的是,它透过请求上的参数来决定该执行哪一个方法,不过LookupDispatchAction多了查询讯息资源文件的功能,LookupDispatchAction的用处之后,就是当一个窗体中包括两个以上同名转载 2009-11-16 10:17:00 · 391 阅读 · 0 评论 -
使用DispatchAction类,为你的系统减肥!
在Struts中你要尽可能的不用Action类,因为他们让你的项目变得臃肿,你可以使用org.apache.struts.actions.DispatchAction类来完成业务逻辑所需要的相关操作集中到一个Action类中,在继承DispatchAction后,你不再是重新定义execute()方法,而是编写你自己的业务方法,execute()方法在DispatchAction抽象类定义。转载 2009-11-16 10:08:00 · 310 阅读 · 0 评论 -
ForwardAction、IncludeAction、SwitchAction
有的时候您只是想要从一个页面或资源转换到另一个资源,在MVC/Model 2的架构中,直接使用页面或资源的路径来叫用并不是一个好的主意,这会使得控制器没有机会处理相关的请求事宜。 您仍应该透过控制器,使用ForwardAction可以帮您完成这个事情,当控制器使用ForwardAction时perform()方法时,它会使用属性parameter所设定的路径进行for转载 2009-11-16 10:13:00 · 272 阅读 · 0 评论 -
struts中的DispatchAction、LookupDispatchAction、MappingDispatchAction
这里用个简单的例子来说明index.jsphttp://struts.apache.org/tags-bean" prefix="bean"%>http://struts.apache.org/tags-html" prefix="html"%>http://struts.apache.org/tags-logic" prefix="logic"%>htt转载 2009-11-16 10:19:00 · 328 阅读 · 0 评论 -
jakarta regexp (java struts正则表达式)
Character Classes [abc] Simple character class [a-zA-Z] Character class with ranges [^abc] Negated character classNOTE: Inc转载 2009-11-16 10:30:00 · 609 阅读 · 0 评论 -
Hibernate annotation 使用笔记
Java代码@Entity --声明为一个实体bean @Table(name="promotion_info") --为实体bean映射指定表(表名="promotion_info) @Id --声明了该实体bea转载 2009-11-16 10:51:00 · 276 阅读 · 0 评论 -
spring2.5 及 hibernate annotation 配置文件笔记
1. web.xml 配置 Xml代码 context-param> param-name>contextConfigLocationparam-name> param-value> /WEB-INF/applicationContext.xml sp转载 2009-11-16 10:53:00 · 471 阅读 · 0 评论 -
用Spring配置文件或者注解方式实现AOP
配置文件bean.xml:http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/schema/context"xmlns:aop="ht转载 2009-11-16 10:57:00 · 866 阅读 · 1 评论 -
struts2+spring2+hibernate3整合SiteMesh
OS(OpenSymphony)的SiteMesh是一个用来在JSP中实现页面布局和装饰(layout and decoration)的框架组件,能够帮助网站开发人员较容易实现页面中动态内容和静态装饰外观的分离。 Sitemesh是由一个基于Web页面布局、装饰以及与现存Web应用整合的框架。它能帮助我们在由大量页面构成的项目中创建一致的页面布局和外转载 2009-11-16 14:10:00 · 446 阅读 · 0 评论