
Servlet Application 저장소에 상태값 저장하기
·
Web/servlet & jsp
서블릿은 application 저장소에 이전에 전달한 값을 저장할수있다 서블릿 코드 : @WebServlet("/test") public class test extends HttpServlet { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setCharacterEncoding("UTF-8"); response.setContentType("text/html; charset=UTF-8"); ServletContext application = request.getServletContext(); PrintWriter out = ..