CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE DETAILS
Question :
How can we done caching of servlet?
How can we log out from a page?
What is the difference between JspWriter & PrintWriter?


Posted by: kuldeep singh on 10/29/2007

Contact kuldeep singh  Contact kuldeep singh
Category J2EE Interview Questions
Rating (0.0) By 0 users
Added on 10/29/2007
Views 1481
Rate it!
Answers:

We can cache a servlet by using get method instead of using post method.<br>2)by using session.invalidate() we can remove the session object which is used mostly inorder to logout from a page<br>3)JspWriter is similar to PrintWriter.the JspWriter object is used to send output to the client and display in the brower.<br><br>The only difference is JspWriter is PrintWriter is mostly used in service method of servlets whereas JspWriter is used by the jsp compiler to create an out object(implicit obj) in the _jspservice method



 Posted by: lavanyakodidasu    

Contact lavanyakodidasu  Contact lavanyakodidasu


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the difference between application server & web server ?
View Answer
What is the difference and advantage of j2ee over java?
View Answer
how do we deploy an jsp application in tomcat?
View Answer
Can we write the code in the applet?
View Answer
What is meant by polymorphism in java?How can we achieve polymorphism?Explain with an example.
View Answer
can you tell me the steps for how to create and execute and run the Ejb simple stateless session application in websphere application server6.0 and Ide is RAD6.0
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL J2EE Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12384/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.89