❮ Previous Next ❯

JSP out implicit object

The out object is an instance of a javax.servlet.jsp.JspWriter object that is used to send content in a response. The JspWriter object is instantiated differently depending on whether the page is buffered or not. Buffering can be easily turned off by using the buffered='false' attribute of the page directive. The JspWriter object contains some methods as the java.io.PrintWriter class. However, JspWriter has some additional methods designed to deal with buffering. Unlike the PrintWriter object, JspWriter throws IOExceptions.

Following are the methods invoking by the JSP out implicit object.

  method     Description
out.print() Print a data type value
out.println() Print a data type value then terminate the line with new line character.
out.flush() Flush the stream.

❮ Previous Next ❯


Follow Us




  Tutorials

Popular Links

Contact Us

address Plot No-N6/530,2ND Floor
Nayapalli,Jayadev Vihar
      Bhubaneswar-751015
      Email: info@silantechnology.com
      Phone: 0674-2361252
address
39877, sundale dr, apt#101, Fremont, California 94538, USA
       Phone: +1(262)388-7619

facebook twitter google linked in

© 2018 Silan Technology. All Rights Reserved