IT/etc
[ETC] Spring Controller에서 자바스크립트 경고창 띄우는 방법
1. 아래와 같이 경고창을 띄울수 있는 Class를 생성합니다. import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.HttpServletResponse; //=> 컨트롤에서 경고창 전달시 사용 public class ScriptAlertUtils { public static void init(HttpServletResponse response) { response.setContentType("text/html; charset=utf-8"); response.setCharacterEncoding("utf-8"); } public static void alert(HttpServletResponse response,..