System.out.println - Hello World Example
843836Sep 29 2003 — edited Sep 30 2003Hi All
I am using Apache Tomcat and trying t produce a simple output to the browser. Cannot get System.out.println to work. See code and out below:
begin code
<HTML>
<HEAD><TITLE>hello jsp</TITLE></HEAD>
<BODY>
<%@ page language='java' contentType='text/html' %>
<%
String message = "Hello World";
message = message + "\nAFTER";
System.out.println("BEFORE");
%>
<%= (message) %>
</BODY>
</HTML>
END code
--begin browser output
Hello World AFTER
end browser ouput
Would be grateful if someone could explain why the System.out.print statement cannot be seen in the browser output.
many thanks
Naresh