강의

멘토링

커뮤니티

Inflearn Community Q&A

hupark03134672's profile image
hupark03134672

asked

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

A taste of servlets

실행 시 html 구문만 나와요.

Written on

·

396

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 { 하위 부분 삭제하셔도 나올거에요

hupark03134672's profile image
hupark03134672

asked

Ask a question