<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
모든 페이지에 필수적으로 사용
2) 웹 브라우저에서 서버로 넘어오는 파라미터 값에 한글 처리(POST방식)
<% request.setCharacterEncoding("utf-8"); %>
3) 웹 브라우저에서 서버로 넘어오는 파라미터 값에 한글 처리(GET방식)
3-1
Project Explorer 뷰에서 [Servers] - [Tomcat v8.0 Server~] 에 있는 server.xml 인코딩한다.
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8081" protocol="HTTP/1.1" redirectPort="8443"/>
3-2
[톰캣홈] - [conf]폴더에 있는 server.xml 파일에 한글 인코딩을 지정한다.
<Connector URIEncoding="UTF-8" connectionTimeout="20000" port="8081" protocol="HTTP/1.1" redirectPort="8443"/>
'기존카테고리 > JSP_basic' 카테고리의 다른 글
response 내장객체 (0) | 2017.06.28 |
---|---|
request 내장객체 (0) | 2017.06.28 |
while문 (0) | 2017.06.27 |
if문 (0) | 2017.06.27 |
표현식(Expression) (0) | 2017.06.27 |