Out Implicit Object


Prev Tutorial Next Tutorial

Out Implicit Object

In JSP, out is an implicit object of type JspWriter.This object used for writing any data to the buffer. In case of Servlet we need to write:

Syntax

PrintWriter out=response.getWriter();  

But in JSP, you do not need to write this code. Because in jsp for print any result on browser we use expression tag and this tag are auto converted to out.print() statement and insert the out.print() into -jspService() of the servlet class by the container.

Example of out implicit object

welcome.jsp

Syntax

<%   
out.print("Welcome");  
%> 

Prev Tutorial Next Tutorial

Advertisements




Facebook Likes

Advertisements