태터데스크 관리자

도움말
닫기
적용하기   첫페이지 만들기

태터데스크 메시지

저장하였습니다.

서블릿 화면에 한글처리를 하기위해서는 다음과 같이 한다.

    response.setContentType("text/plain;charset=utf-8");
    //response.setContentType("text/html;charset=utf-8"); // html 형식으로 보일때 사용
    PrintWriter out = response.getWriter();

위의 코드의 순서를 유의해서 작성한다.
out 객체를 response.getWriter()메소드로 생성하기 전에  ContentType을 지정해야 한다.

입력 값에 대한 처리는
import java.net.*;
URLDecoder.decode(request.getParameter("변수명"));

top

Trackback Address :: http://www.ssial.com/trackback/72 관련글 쓰기

  1. Chanel Outlet 2011/09/17 21:33 댓글주소 | 수정/삭제 | 댓글

    Time is what you make of it.

  2. Burberry Bags 2011/10/13 17:26 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog! From time to time students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. Thanks.

  3. Coach Outlet Online 2011/11/15 12:53 댓글주소 | 수정/삭제 | 댓글

    I'm happy I found this blog ! It's very good and thank you for sharing it !

Write a comment