<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 
    主站蜘蛛池模板: 亚洲视频免费播放| 性生交片免费无码看人| 亚洲综合av一区二区三区| 亚洲精品二区国产综合野狼| 日本午夜免费福利视频| 精品国产免费人成电影在线观看 | 成全视频高清免费观看电视剧| 亚洲夂夂婷婷色拍WW47| 久久久久久亚洲精品成人| 久久久精品国产亚洲成人满18免费网站| 最新猫咪www免费人成| 5555在线播放免费播放| 99久久国产精品免费一区二区 | 最近免费中文字幕4| 永久在线免费观看| 暖暖日本免费中文字幕| 9久热精品免费观看视频| 黄色网址免费在线| 女bbbbxxxx另类亚洲| 亚洲精品成a人在线观看☆| 国产成人精品日本亚洲11| 亚洲国产精品综合福利专区| 911精品国产亚洲日本美国韩国| 精品久久香蕉国产线看观看亚洲| AV在线播放日韩亚洲欧| 亚洲成人国产精品| 亚洲精品久久久www| 无码不卡亚洲成?人片| 又粗又硬又黄又爽的免费视频 | 亚洲成人高清在线观看| 亚洲精品一区二区三区四区乱码| 亚洲福利视频一区| 在线观看亚洲一区二区| 91亚洲精品视频| 久久亚洲AV无码精品色午夜 | 中文字幕在线成人免费看| 中文字幕免费播放| 国内精品久久久久影院免费 | 国产一区二区三区免费在线观看 | 直接进入免费看黄的网站| 日韩亚洲人成网站|