728x90 jsp get1 [JSP] ch01-01. 서블릿 클래스 GET 방식 1-1. 서블릿 클래스 Get방식 전송 @WebServlet("/ch01/ex01/add") public class DoGet extends HttpServlet { private static final long serialVersionUID = 1L; protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { int num1 = 1; int num2 = 2; response.setContentType("text/html.charset=utf-8"); PrintWriter out = response.getWriter(); out.println("GET").. WEB/JSP 2017. 11. 1. 이전 1 다음 728x90