728x90 servlet class2 [JSP] ch01-03. 서블릿 클래스 GET, POST 방식 1-3. 서블릿 클래스 Get, Post방식 전송 @WebServlet("/ch01/ex03/home/add") public class DoGetPost extends HttpServlet { private static final long serialVersionUID = 1L; public void process(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... WEB/JSP 2017. 11. 1. [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