JSP out implicit Object

out is a type of JspWriter.

This is the PrintWriter object used to send output to user.

syntax:

1
2
 
out.println("Hi This is Bhavesh Lakhani");

i.e

outObject.jsp

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<%@ page language="java" %>
 
<html>
<head>
<title>Insert title here</title>
</head>
 
<body>
 
<%
 
out.println("<h1>Hi This is Bhavesh Lakhani</h1>");
 
%>
 
</body>
</html>

Output:

Leave a Reply

Your email address will not be published. Required fields are marked *