1
<HTML>
<BODY>
<%
// This is a scriptlet. Notice that the "date"
// variable we declare here is available in the
// embedded expression later on.
System.out.println("Evaluating date now");
java.util.Date date = new java.util.Date();
%>
Hello! The time is now <%= date %>
</BODY>
</HTML>
이것은 간단한 JSP 파일입니다. Tomcat의 webapp 디렉토리에 넣고 http://localhost:8080을 통해 액세스합니다.JSP 파일을 실행할 때 인쇄 줄은 어디에 있습니까?
println의 출력이 어디 있는지 전혀 알지 못한다면 괜찮습니다. 다시 말해 출력을 어떻게 볼 수 있습니까?
중복 가능성 "나는 톰캣 5.5을 가지고 있고 그것은 아래/로그 파일 catalina.log 폴더 로그"(HTTP를 : [JSP에서 System.out.println 인쇄?] //stackoverflow.com/questions/1543997/jsp-where-system-out-println-prints) –