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)

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 鸡泽县| 镇江市| 四川省| 开原市| 原阳县| 宝兴县| 溧阳市| 乌海市| 广平县| 高尔夫| 江津市| 攀枝花市| 正镶白旗| 旬邑县| 乾安县| 克拉玛依市| 南华县| 崇仁县| 西峡县| 临城县| 衢州市| 宝丰县| 香港| 五原县| 临安市| 凭祥市| 甘谷县| 澳门| 景谷| 金寨县| 油尖旺区| 开化县| 夹江县| 江西省| 滦南县| 宝坻区| 灵川县| 安图县| 巫山县| 禄劝| 阳信县|