out.println () output to the client. In Out.println (), out is an instance of response. is the flow output of response as an object, and the content is output toclient. Assuming that System.out.println () is used in a JSP page, the client simply outputs a single space.System.out.println () is printed on the console.
System.out.println () uses the standard output stream, which is output on the console. And JSP is not a console program. System.out.println () is printed on the console, either in the JSP or in the Java program. If you want to print on a page, the simple point is: Out.print ("What to print"); In fact, in the formal construction of the site, is never out.println (), are directly using the label. Example: Server platform: Tomcat.
Client:firefox Browser.
SOURCE program://test.jsp file <% @page contenttype= "text/html;charset=gb2312"%> <%@ Page import = "Java.util.Date"%><%out.println ("This was printed by out.println."); System.out.println ("This was printed by System.out.println."); System.out.println ("This was printed by System.out.println."); System.out.println ("This was printed by System.out.println."); O Ut.println ("This was printed by out.println."); Results from%> </body>
OUT.PRINTLN () Differences in System.out.println () and JSPs in Java