91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 716KB
    文件類型: .7z
    金幣: 1
    下載: 0 次
    發布日期: 2021-06-18
  • 語言: 其他
  • 標簽: web??聊天??

資源簡介

基于web的在線聊天系統源碼,MVC框架設計開發,可用作畢業設計,課程設計。

資源截圖

代碼片段和文件信息

/*
?*?To?change?this?template?choose?Tools?|?Templates
?*?and?open?the?template?in?the?editor.
?*/

package?com.wgh.filter;


import?java.io.IOException;

import?javax.servlet.*;



public?class?CharacterEncodingFilter?implements?Filter{

??
??protected?String?encoding?=?null;
???
?protected?FilterConfig?filterConfig?=?null;

?
???public?void?init(FilterConfig?filterConfig)?
throws?ServletException?{
???????
???????this.filterConfig?=?filterConfig;
??
??????this.encoding?=?filterConfig.getInitParameter(“encoding“);
???
?}

??
??public?void?doFilter(ServletRequest?request?ServletResponse?response?FilterChain?chain)?throws?IOException?
ServletException?{
????
????if?(encoding?!=?null)?{
??
??????????request.setCharacterEncoding(encoding);
??
??????????response.setContentType(“text/html;?charset=“+encoding);
????
????}
????????
chain.doFilter(request?response);
??
??}

???
?public?void?destroy()?{
?
???????this.encoding?=?null;
??
??????this.filterConfig?=?null;
???
?}

}

評論

共有 條評論