티스토리 뷰

server.xml 설정

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8" />

<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />

 

URIEncoding="UTF-8" 넣는다.

 

web.xml 설정

<filter>
                  <filter-name>encodingFilter</filter-name>
                  <filter-class>filter.EncodingFilter</filter-class>
                  <init-param>
                                   <param-name>encoding</param-name>
                                   <param-value>UTF-8</param-value>
                  </init-param>
</filter>
<filter-mapping>
                  <filter-name>encodingFilter</filter-name>
                  <url-pattern>*</url-pattern>
</filter-mapping>

 

jsp파일 설정

<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="UTF-8"%>

첫줄에 넣는다.

'웹개발자 > 웹서버' 카테고리의 다른 글

http method 제한 (trace)  (2) 2019.01.14
tomcat 사진파일 업로드 경로 설정  (0) 2017.11.03
윈도우에서 php와 MariaDB 연동  (0) 2016.04.12
윈도우에서 nginx php 연동  (1) 2016.04.12
윈도우에 nginx 설치  (2) 2016.04.12
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함