struts2
共 3 篇文章
struts2中的跳转详解
Struts2的ResultType和Action处理链 Struts2的结果类型 在 struts-default.xml 中定义了Struts2内置的所有可用的**<result-type/>** 所有的Struts2结果处理类都要直接或间接的实现com.opensymphony.xwork2.Result接口 在 struts-default.xml 中的**<result-types/> 里面,有这样一行声明 Deprecated name form scheduled for removal in Struts 2.1.0. The camelCase versions are p…
2012-06-23 23:58 · struts2 · Struts
struts 校验
Struts校验可以分为两种类型:Annotation型,XML配置型 Annotation型主要使用Annotation来配置Action中的属性,这里我们做过多的介绍,需要看的请参看我的其他相关文章。XML配置型主要是指,使用XML来描述配置信息,之后提供给Struts框架做校验。使用Struts2,XML配置型的校验可以使用三种方式:普通的服务器端校验方式,客户纯JavaScript方式端校验,和Ajax方式的校验。 普通的服务器端校验方式: 客户端提交信息到服务器,在服务器上使用XML配置信息,校验客户端提交的信息,错误的情况下,返回input页面,显示校验错误信息。 客户端纯Jav…
2012-06-20 22:08 · struts2 · Struts
spring,struts2,ibatis
使用ibatis 首先导入一个ibatis jar包,然后在项目src下,添加了两个xml文件,一个是user.xml映射文件,另一个是 ibatis的基本配置文件sqlMapClient.xml User.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sqlMap PUBLIC "-//ibatis.apache.org//DTD SQL MAP 2.0//EN" "http://ibatis.apache.org/dtd/sql-map-2.dtd"> <sqlMap namespace="User"> <resultMap i…
2012-06-17 21:06 · spring · ibatis · struts2 · Struts2 · Spring · iBATIS