JSP out implicit object

JSP out object is an instance of javax.servlet.jsp.JspWriter.

It is used to write the data or content on client’s browser.

Example:

welcome.jsp

<html>
	<head>
		<title>out implicit object example</title>
	</head>
	<body> 
	   <%
	     out.print("Hello this is an out implicit object example.");
	   %>
	</body>
</html>

web.xml

<web-app>
 
  <welcome-file-list>
          <welcome-file>welcome.jsp</welcome-file>
  </welcome-file-list>	
 
</web-app>

Output:

jsp example 18
 
Download this example.
 
Next Topic: JSP request implicit Object with example.
Previous Topic: JSP implicit objects with example.

 

Content Protection by DMCA.com
Please Share