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 (660)
 ASP interview questions  ASP Interview Questions (252)
 CGI Perl interview questions  CGI Perl Interview Questions (76)
 JavaScript interview questions  JavaScript Interview Questions (176)
 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 to set class path in java TechSoft 1
How can a cookie is deleted with JSP?   1
how can i get a scjp certification??   3
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
i am using rich faces datatable rich:datatable. On entering the value, values get filtered in table. Now how can i get the value in back9ing bean..?   1
How to implement a thread-safe jsp page?   3
why we use jsp as view NCS 3
How to find the hidden answers present in an online exam?   3
What is the difference between <jsp:forward> and sendRedirect? HCL 6
what is difference between redirect and forward method? Wipro 11
what are the alternate way to use the scriplet in jsp.   1
Can we write a class inside Jsp?   1
 
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