posts - 7,  comments - 6,  trackbacks - 0

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 清咖 阅读(748) 评论(0)  编辑  收藏

只有注册用户登录后才能发表评论。


网站导航:
 
<2005年11月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(1)

随笔档案

搜索

  •  

最新评论

阅读排行榜

评论排行榜