1。spring日期类型要写自己的方法覆盖原有的绑定类型
例如生日域的绑定
protected void initBinder(HttpServletRequest arg0, ServletRequestDataBinder arg1) throws Exception {
arg1.registerCustomEditor(Date.class,"birthday",getCustomDateEditor());
super.initBinder(arg0, arg1);
}
2.trim
The string without leading and trailing white-space. Example: (${" green mouse "?trim})
The output: (green mouse)
3.split
<#list "someMOOtestMOOtext"?split("MOO") as x>
- ${x}
</#list>
willprint :
- some
- test
- text
posted on 2005-11-18 10:21
清咖 阅读(757)
评论(0) 编辑 收藏