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

          只有注冊用戶登錄后才能發(fā)表評論。


          網(wǎng)站導(dǎo)航:
           
          <2005年11月>
          303112345
          6789101112
          13141516171819
          20212223242526
          27282930123
          45678910

          常用鏈接

          留言簿(1)

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 清丰县| 诸城市| 磐石市| 博野县| 永济市| 怀来县| 凌海市| 平乐县| 宁武县| 旬邑县| 甘洛县| 忻州市| 平泉县| 襄汾县| 峨边| 武邑县| 乌兰县| 宁晋县| 桐梓县| 卢湾区| 五家渠市| 大足县| 珲春市| 安新县| 柘城县| 兴和县| 宁乡县| 颍上县| 临夏市| 永新县| 克拉玛依市| 汽车| 随州市| 承德市| 星子县| 赤壁市| 宁强县| 怀柔区| 青海省| 威宁| 霍城县|