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
 
How many page directive we can use in a single JSP? Persistent 2
how to enable session tracking for jsp pages,if the browser has disabled cookies?   2
What are JSP scripting elements?   8
How do I set password expire time period?   4
How to find the hidden answers present in an online exam?   3
How to implement a thread-safe jsp page?   3
What is the difference between Java Servlet & JSP?   1
What is the difference between JSP and Servlet? T3-Softwares 21
What are JSP Directives?   9
How to get session in Jsp other than session object? TCS 3
Explain about the Scriplet and Exclamatory Tag? HCL 1
What is the most needed for STRUTS ? Trigent 2
 
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