<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆 - 6  文章 - 129  trackbacks - 0
    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    常用鏈接

    留言簿(14)

    隨筆檔案(6)

    文章分類(467)

    文章檔案(423)

    相冊

    收藏夾(18)

    JAVA

    搜索

    •  

    積分與排名

    • 積分 - 825755
    • 排名 - 49

    最新評論

    閱讀排行榜

    評論排行榜

    web.xml文件
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
     version="2.4">

        <filter>
          <filter-name>CharacterEncodingFilter</filter-name>
          <filter-class>
               org.springframework.web.filter.CharacterEncodingFilter
          </filter-class>
          init-param>
           <param-name>encoding</param-name>
           <param-value>GB2312</param-value>
          </init-param>
          <init-param>
           <param-name>forceEncoding</param-name>
           <param-value>true</param-value>
          </init-param>
         </filter>
    <!-- 要過濾得類型 -->
      <filter-mapping>
      <filter-name>SetCharacterEncoding</filter-name>
      <url-pattern>*.jsp</url-pattern>
      </filter-mapping>

    </web-app>
    public class CharacterEncodingFilter
    extends OncePerRequestFilter
    
    

    Servlet 2.3/2.4 Filter that allows one to specify a character encoding for requests. This is useful because current browsers typically do not set a character encoding even if specified in the HTML page or form.

    This filter can either apply its encoding if the request does not already specify an encoding, or enforce this filter's encoding in any case ("forceEncoding"="true"). In the latter case, the encoding will also be applied as default response encoding on Servlet 2.4+ containers (although this will usually be overridden by a full content type set in the view).



    posted on 2007-09-12 23:27 Ke 閱讀(3210) 評論(1)  編輯  收藏 所屬分類: spring

    FeedBack:
    # re: org.springframework.web.filter.CharacterEncodingFilter 2008-10-24 19:37 
    哦也  回復  更多評論
      
    主站蜘蛛池模板: 精品无码人妻一区二区免费蜜桃| GOGOGO高清免费看韩国| 999久久久免费精品国产| 亚洲欧洲在线播放| 很黄很黄的网站免费的| 亚洲日本久久久午夜精品| 妞干网在线免费观看| 亚洲欧美第一成人网站7777| 日韩免费高清视频| 美女羞羞喷液视频免费| 亚洲欧洲中文日韩av乱码| 久久国产精品免费| 亚洲国产女人aaa毛片在线| 69av免费观看| 亚洲精品av无码喷奶水糖心| 免费国产在线观看| 91在线视频免费观看| 亚洲视频一区在线播放| 日本在线高清免费爱做网站| 国产成人精品免费视频网页大全| fc2免费人成在线视频| 最近免费中文字幕中文高清| 亚洲第一成年男人的天堂| aⅴ在线免费观看| 亚洲第一街区偷拍街拍| 国产亚洲自拍一区| 99热精品在线免费观看| 三年片在线观看免费观看大全一| 久久亚洲sm情趣捆绑调教| 免费A级毛片无码免费视| 免费精品视频在线| 亚洲日本在线观看| 国产高清在线精品免费软件| 成年免费a级毛片免费看无码| 亚洲一级二级三级不卡| 永久免费bbbbbb视频| 久久国产乱子伦精品免费一| 国内精品久久久久影院亚洲| 亚洲一区二区三区自拍公司| 成年网站免费视频A在线双飞| 一级一级一片免费高清|