인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

형욱박's profile image
형욱박

asked

Practical JSP (renew ver.) - Course for new programmers

A taste of servlets

실행 시 html 구문만 나와요.

Written on

·

327

4

안녕하세요. 맛보기 servlet를 실행했는데

브라우저에 아래 처럼 나옵니다. 무엇이 잘못된 걸까요??
Served at: /testWebPjt1<html><head></head><body><p>Hello Servlet!!</p></body></html>


javajsp

Answer 2

16

아래 코드를 doGet()메서드 아래에 삽입해줘야 합니다

response.setContentType("text/html");

너무 감사합니다. 강의 내에선 이 코드 없이 되었던 이유는 왜 일까요?

2

IOException { 하위 부분 삭제하셔도 나올거에요

형욱박's profile image
형욱박

asked

Ask a question