In JSP, out is an implicit object that is associated with the response object. This object is used to write content to the output stream.

Methods of JSP out

Following are some important methods of JSP out: –



void print()

This is one of the most frequently used method. It prints the statement.

void clear()

This method is used to remove the content of buffer.

boolean isAutoFlush()

This method specifies whether the buffer is flushed or not.

int getBufferSize()

This method returns the size of buffer in bytes.

int getRemaining()

This method returns the unused size of buffer in bytes.

Example of JSP out

This example shows the functionality of all the above methods on JSP out object.



Pin It on Pinterest

Share This