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 (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
 
why JSP is bigger choice for software development as compare to ASP.   2
how to set class path in java TechSoft 1
Are application, pageContext and object of ServletContext same or not?   2
how to pass values to a function fron input tags, and how to display that values in that called function TCS 2
which is the place to learn java in chennai..   3
Can u Override any of the lifecycle methods of JSP?   1
how can i get a scjp certification??   3
How many page directive we can use in a single JSP? Persistent 2
How can a cookie is deleted with JSP?   1
Which is best centre in chennai.. i am wil study to java... pls help me..   3
hi friends...i created sessions in my login page i can able to create a session but after loging out again i can able access the pages by its addresses. i think u may got problem if possible post me small example for login with sessions including database   1
How do you import the packages in the JSP? HCL 14
 
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