GET / POST 한글 처리
POST (Web.xml)
<!-- Encoding filter -->
<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</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>
GET (Server.xml)
중간 부분에 URIEncoding="UTF-8" 추가
<Connector connectionTimeout="20000" port="8090" protocol="HTTP/1.1" redirectPort="8443" URIEncoding="UTF-8"/>
'Programming > Web' 카테고리의 다른 글
[Web] 색상표 (0) | 2015.04.06 |
---|---|
[Web] JSTL FUNCTION (0) | 2015.03.10 |
[Web] web.xml 에러페이지 처리 (0) | 2015.01.09 |
[Web] requestPath (0) | 2014.12.08 |
[Web] URI, URL, URN 이란? (0) | 2014.09.18 |