What is the difference between JspWriter and PrintWriter
Answers were Sorted based on User's Feedback
Answer / srinivaskumar.nimmana
This abstract class emulates some of the functionality
found in the java.io.BufferedWriter and java.io.PrintWriter classes,
however it differs in that it throws java.io.IOException from the print methods while PrintWriter does not
| Is This Answer Correct ? | 10 Yes | 3 No |
Answer / toharpreet
Including basic differences also
1) Package Difference
One is in IO and other is in java x packages
JSPWriter - package javax.servlet.jsp;
PrintWriter - package java.io;
2) Type Differences
One is Abstract class other is class
public class PrintWriter extends Writer {
public abstract class JspWriter extends Writer {
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / srinivaskumar.nimmana
JspWriter is abstract class emulates some of the functionality found in the java.io.BufferedWriter and java.io.PrintWriter classes, however it differs in that it throws java.io.IOException from the print methods while PrintWriter does not
| Is This Answer Correct ? | 5 Yes | 2 No |
JspWriter class Object is used to print the value in Jsp Page. it is not the object of JspWriter abstarct class it is the object of the class that implements JspWriter i.e. Writer....
PrintWriter class Of java.io package create an objectthatis used in servlet to print the value on console.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is Single Threaded Model in Servlets? Explain this with an example?
What is meant by servlet? What are the parameters of the service method?
Hi frnd can i any one kindly can post for me portlet,hibernate and spring example application and with flow explantion configuration using Jdeveloper.and related links ar tutorials kindly please send me .its urgent for me .thanks in advance...........else can any one send to kondaiah.goddeti@gmail.com
How servlet is created?
Difference between forward() method and sendredirect() method ?
How session tracking can be achieved, if your browser doesn't support cookies (or) if cookies are disabled?
What are the type of protocols used in httpservlet?
How do u authorize and authenticate without <auth> of web.xml
what is session tracking?what are types of session tracking ?and when to cookies,when to use sessionmanagement,whent use url rewriting technique,plz explain briefly?
When jsessionid is created?
What do you mean by session tracking and also explain its techniques?
How to pass JavaBeans data to JSP using Servlets?