ALLInterview.com :: 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                      
Google
   
 
Categories >> Software >> Scripts >> JSP
 
 


 

 
 PHP interview questions  PHP Interview Questions (659)
 ASP interview questions  ASP Interview Questions (251)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (175)
 VB Script interview questions  VB Script Interview Questions (343)
 JSP interview questions  JSP Interview Questions (100)
 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)
Question
How to implement a thread-safe jsp page?
 Question Submitted By :: JSP
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
just add the directive <%@ page isThreadSafe="false" %>
with the jsp page..
 
Is This Answer Correct ?    16 Yes 5 No
Harish
 
Answer
# 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.
Syntex
<% page isthreadSafe="true"%>
 
Is This Answer Correct ?    10 Yes 5 No
Vipin Gupta Trainer
 
 
 
Answer
# 3
to make jsp as threadsafe we hav to make isThreadSafe=false
,so it sends only one request for processing.it implicitly
implement SingleThreadModel interface
 
Is This Answer Correct ?    4 Yes 7 No
Shiva
 

 
 
 
Other JSP Interview Questions
 
  Question Asked @ Answers
 
what is the enitre process of using smart forms to create forms? Caritor 1
what are the alternate way to use the scriplet in jsp.   1
Can we use methods in JSP? If so where the methods are stored in servlet class file? Persistent 6
What's the difference between an import and include directive, and also the difference between include directive and include action?   1
What is the use of Application Object and Session Object in JSP? HCL 4
How to works asjx in jsp?   1
how to maintain sessions in jsp?can you tellme the methods. IBM 16
How do you import the packages in the JSP? HCL 14
What is the different between servlet and struts   2
Plz any body tell me why use jsp over servlet.what is the benefit of jsp over servlet? HCL 4
what will happen if we disable cookies in the web page?   7
how can i get a scjp certification??   3
 
For more JSP Interview Questions Click Here 
 
 
 
 
 


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

ALLInterview.com   ::  KalAajKal.com