R4R
Right Place For Right Person TM

What is the differecnce between JspWriter and PrintWriter?

previous previous previous
Question:
What is the differecnce between JspWriter and PrintWriter?

Question:What is the differecnce between JspWriter and PrintWriter?


Answer
JspWriter is a buffered version of the PrintWriter. JspWriter also differs from a PrintWriter by throwing java.io.IOException, which a PrintWriter does not. If the page is not buffered, output written to this JspWriter object will be written through to the PrintWriter directly, which will be created if necessary by invoking the getWriter() method on the response object. But if the page is buffered, the PrintWriter object will not be created until the buffer is flushed and operations like setContentType() are legal. Since this flexibility simplifies programming substantially, buffering is the default for JSP pages.

By:Jalees
Date:

What is the differecnce between JspWriter and PrintWriter?

Post Your Answers


User Name:
Answers:

Related Links

  1. How can you implement singleton pattern in servlets ?
  2. What is the difference between an application server and a web server?
  3. Can we implement Runnable interface from within our servlet?
  4. What is RequestPocessor class? How will you create your own RequestPocessor?
  5. Can you test a JSP page using Junit?

Question:What is the differecnce between JspWriter and PrintWriter?

Back Home Next

New Updates

Topics

Topics

R4R
R4R
R4R
R4R
R4R
R4R
R4R
R4R