Response.Write with JSP

Clearly, there’s a trend here. I’m trying to ramp up with some basic JSP knowledge and the quickest way I know how is by displaying error messages or attempting to debug my learning code.

In classic ASP or C#, the use of Response.Write is quite common, in JSP, you can write to the screen or the server log using the following example:

<html>
<head></head>
<body>
<%
System.out.println("Error on line 1");
out.println("Error on line 1");
%>
</body>
</html> 

One Comment

Anonymous  on January 27th, 2010

a

Leave a Comment