JSP 페이지 1번 줄에 셋팅
1 |
<%@ page language= "java" contentType= "text/html; charset=utf-8" pageEncoding= "utf-8" %> |
post 방식의 파라미터를 받는 페이지마다 해당 라인 추가
1 |
request.setCharacterEncoding( "utf-8" ); |
톰캣 server.xml 파일에 Connector마다 URIEncoding="utf-8" 추가
1
2 |
< connector redirectPort = "8443" protocol = "HTTP/1.1" port = "8080" connectionTimeout = "20000" URIEncoding = "utf-8" > </ connector >
|
톰캣 web.xml 파일 수정
1
2
3
4
5
6
7
8
9 |
< filter >
< filter-name >setCharacterEncodingFilter</ filter-name >
< filter-class >org.apache.catalina.filters.SetCharacterEncodingFilter</ filter-class >
< init-param >
< param-name >encoding</ param-name >
< param-value >UTF-8</ param-value >
</ init-param >
< async-supported >true</ async-supported > </ filter > |
'JSP' 카테고리의 다른 글
Servlet.service() for servlet [action] in context with path [] threw exception [Handler processing failed; nested exception is java.lang.NoSuchMethodError: net.sf.jxls.transformer.XLSTransformer.transformXLS (0) | 2015.03.13 |
---|---|
jsp 현재 날짜 구하기 (0) | 2014.12.22 |
[JSTL] 널값체크 예제 (0) | 2014.08.20 |
[jstl] 숫자 천단위마다 콤마 찍어 구분 (0) | 2014.08.18 |
HwpApp.dll 에러 (0) | 2014.08.01 |