<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)

    相冊(cè)

    收藏夾(18)

    JAVA

    搜索

    •  

    積分與排名

    • 積分 - 825594
    • 排名 - 49

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    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) 評(píng)論(1)  編輯  收藏 所屬分類: spring

    FeedBack:
    # re: org.springframework.web.filter.CharacterEncodingFilter 2008-10-24 19:37 
    主站蜘蛛池模板: 亚洲网站在线免费观看| 色噜噜亚洲男人的天堂| 久久www免费人成看片| 自拍偷区亚洲国内自拍| 一本色道久久88亚洲综合| 国产精品免费无遮挡无码永久视频| 亚洲国产精品成人精品小说| 又粗又硬又大又爽免费视频播放| 日本一区二区免费看| 亚洲精品无码中文久久字幕| 青青草原亚洲视频| 毛片免费观看网站| 国产亚洲免费的视频看| 朝桐光亚洲专区在线中文字幕 | va亚洲va日韩不卡在线观看| 免费精品一区二区三区第35 | 亚洲另类视频在线观看| 亚洲精品国自产拍在线观看 | 亚洲视频在线观看网址| 亚洲国产成人爱av在线播放| 久久久久久精品免费免费自慰| 国产精品免费观看视频| 亚洲精品无码永久在线观看男男| 亚洲一区二区三区首页| 久久精品国产精品亚洲艾草网美妙| 啦啦啦中文在线观看电视剧免费版 | 亚洲国产成人九九综合| 亚洲伊人色欲综合网| 四虎免费大片aⅴ入口| 91香蕉国产线在线观看免费| sss在线观看免费高清| 亚洲妇女无套内射精| 亚洲日韩乱码中文无码蜜桃臀 | 产传媒61国产免费| 亚洲色大成网站www| 亚洲综合久久成人69| 亚洲精品蜜桃久久久久久| 亚洲中文无韩国r级电影| 大学生美女毛片免费视频| 色影音免费色资源| 免费看又黄又无码的网站|