:: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Categories >> Software >> Scripts >> JSP


 PHP interview questions  PHP Interview Questions (658)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (174)
 VB Script interview questions  VB Script Interview Questions (338)
 JSP interview questions  JSP Interview Questions (99)
 Shell Script interview questions  Shell Script Interview Questions (158)
 Python interview questions  Python Interview Questions (5)
 Tcl interview questions  Tcl Interview Questions (19)
 Awk interview questions  Awk Interview Questions (6)
 AJAX interview questions  AJAX Interview Questions (24)
 Ruby on Rails interview questions  Ruby on Rails Interview Questions (21)
 Scripts AllOther interview questions  Scripts AllOther Interview Questions (48)
How to implement a thread-safe jsp page?
 Question Submitted By :: Harish
I also faced this Question!!     Rank Answer Posted By  
  Re: How to implement a thread-safe jsp page?
# 1
just add the directive <%@ page isThreadSafe="false" %>
with the jsp page..
Is This Answer Correct ?    16 Yes 5 No
  Re: How to implement a thread-safe jsp page?
# 2
isThreadSafe sattes that wheather jsp engine can pass
multiple req simultaneously to the page . a value set to
true(default) indicates that a new thread is started and
therfore request are handled simultaneously . ise the jsp
engine can send multiple concurent lient request to the jsp
page . value set to false indicates that jsp engine sends
lient request one at a time to the jsp page .

It is recommended to always use the value tue for the is
threadsafe page directive and handled multithread issue
by avoiding jsp declaration and ensures that all object
used by the page are thread safe.
<% page isthreadSafe="true"%>
Is This Answer Correct ?    10 Yes 5 No
Vipin Gupta Trainer
  Re: How to implement a thread-safe jsp page?
# 3
to make jsp as threadsafe we hav to make isThreadSafe=false
,so it sends only one request for implicitly
implement SingleThreadModel interface
Is This Answer Correct ?    4 Yes 7 No

Other JSP Interview Questions
  Question Asked @ Answers
hi i m tannu and i m developing one web site as my project and i have created one chatting application using applet and socket it run perfactly using netbeans5.5 and appletviewer but when i run on browser it doent run i put it class file in jar file then call by jsp when it load in browser it stop on applet started plz help me soon   2
What are JSP ACTIONS?   2
Plz any body tell me why use jsp over servlet.what is the benefit of jsp over servlet? HCL 4
What is the difference between <jsp:forward> and sendRedirect? HCL 6
Can we override serivice()method in jsp?   3
Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases. ME 1
how can we retrieve the values in jsp by using custom tags Wipro 4
which situation you use static include and dynamic include in jsp? L&T 2
how can i get a scjp certification??   3
how to enable session tracking for jsp pages,if the browser has disabled cookies?   2
Can we use methods in JSP? If so where the methods are stored in servlet class file? Persistent 6
What is the difference between Java Servlet & JSP?   1
For more JSP Interview Questions Click Here 

Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
Copyright 2013  All Rights Reserved.   ::