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
清咖 閱讀(764)
評論(0) 編輯 收藏