多个Filter按照在配置文件中配置的filter顺序执行。在web.xml文件中配置该Filter,使用init-param元素为该Filter配置参数,init-param可接受如下两个子元素:param-name:指定参数名。param-value:指定参数值。filter 、filter-m...
分类:
编程语言 时间:
2015-09-05 12:24:54
阅读次数:
166
1、Concat函数。
连接字符串常用:concat函数。如sql查询条件的like查询, AND c.name like concat(#{param.name},'%')
将Int 转为varchar经常用 concat函数,比如concat(8,'0') 得到字符串 '80'
2、Cast函数;CONVERT函数。
用法:CAST(expr AS type), CONVERT(expr,type) , CONVERT(expr USING transcoding_name).
SELECT CONV...
分类:
数据库 时间:
2015-08-12 19:33:44
阅读次数:
142
主要需要注意一下两点:1、web.xml中需要设置过滤器,如下:<filter><filter-name>SpringEncodingFilter</filter-name><filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class><init-param><param-name&..
分类:
数据库 时间:
2015-08-12 14:58:11
阅读次数:
156
spring mvc+mybatis+多数据源切换 选取oracle,mysql作为例子切换数据源。oracle为默认数据源,在测试的action中,进行mysql和oracle的动态切换。? web.xml? <context-param>?? ????????<param-name>w...
分类:
编程语言 时间:
2015-08-10 02:15:42
阅读次数:
533
一:分类1、普通servlet2、filter3、listener二:获取参数1、application参数:<context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/xfire-servlet.xml,classpath:applicationContext.xml, /WEB-INF/conf/b..
分类:
其他好文 时间:
2015-08-08 06:56:30
阅读次数:
143
<filter> ? ?<filter-name>encodingFilter</filter-name> ? ?<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> ? ?<init-param> ? ? ? ?<param-name>encodin...
分类:
编程语言 时间:
2015-08-05 22:47:26
阅读次数:
177
<div?class="swfCon">
????<object?id="FlashID2"?classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"?width="550"?height="900">
????????<param?name="movie"?value="${ctx?}/flash/c...
分类:
其他好文 时间:
2015-07-31 18:45:32
阅读次数:
156
/// 〈summary〉 /// 汉字转拼音缩写 /// 〈/summary〉 /// 〈param name="str"〉要转换的汉字字符串〈/param〉 /// 〈returns〉拼音缩写〈/returns〉 public string GetPYString(string str) { ....
分类:
其他好文 时间:
2015-07-30 23:07:57
阅读次数:
267
格式定义: contextConfigLocation contextConfigLocationValue> 作用:该元素用来声明应用范围(整个WEB项目)内的上下文初始化参数。param-name 设定上下文的参数名称。必须是唯一名称param-value 设定的参数名称的值初始化过程...
分类:
Web程序 时间:
2015-07-30 16:18:07
阅读次数:
102
方法一
在html或者JS代码里通过隐含变量param获取:
${param.name}...
分类:
Web程序 时间:
2015-07-24 14:22:59
阅读次数:
128