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

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


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

          常用鏈接

          留言簿(1)

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 五寨县| 绥中县| 彩票| 巩留县| 搜索| 东至县| 巴马| 上栗县| 咸丰县| 黔西| 山东| 门头沟区| 桦南县| 交口县| 台州市| 溧阳市| 武宁县| 铜鼓县| 兴国县| 沁源县| 离岛区| 民乐县| 普格县| 慈利县| 怀来县| 平舆县| 金山区| 红原县| 辽阳市| 彭山县| 依安县| 广丰县| 汉源县| 兴隆县| 突泉县| 武宁县| 宜都市| 廉江市| 梅州市| 项城市| 惠州市|