자바 스프링에서 javascript alert 출력하기
JAVA/JSP / 2017. 10. 27. 14:34
import org.springframework.web.bind.annotation.RequestParam;
public ModelAndView pageView(CommandMap commandMap, Model model, HttpServletResponse response) throws Exception{
..중간생략
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
out.println("<script>alert('정보를 확인해주세요.'); </script>");
out.flush();
}
'JAVA/JSP' 카테고리의 다른 글
jsp에서 모든 request 출력하기 (0) | 2017.11.07 |
---|---|
java한글깨짐 테스트 (0) | 2017.11.07 |
Project facet Java version 1.8 is not supported. (0) | 2017.02.24 |
textarea 개행처리 (0) | 2016.11.27 |