wood burning stoves 2.0*
The moose likes Servlets and the fly likes default implementation of JSPs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "default implementation of JSPs" Watch "default implementation of JSPs" New topic
Author

default implementation of JSPs

Ganapathi Srinivasan
Ranch Hand

Joined: Apr 18, 2001
Posts: 41
Hi..
I know that internally a JSP is represented as a servlet.
My question is that when a servlet is generated for a JSp it is by default multiThreaded(again i think so...)
Just as i can make my servlet implement SingleThreaded model can i specify it in my JSP to make the servlet generated internally implement Single Threaded model? if yes how?
Thanks,
Ganapathi.
chanoch wiggers
Author
Ranch Hand

Joined: May 24, 2001
Posts: 245
Hi Ganapathi,
if you want to denote that your jsp is not thread safe, add isThreadSafe="false" to the declaration at the top of you page:
<%@ page language="java" import=etc isThreadSafe="false"% ...rest of declarration>
if you do this, the server will queueu requests so that only one is answered at a time
chanoch


chanoch<p><a href="http://www.amazon.com/exec/obidos/ASIN/1861007736/" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default implementation of JSPs
 
Similar Threads
Designing Exceptions?
MVC Model Vs. JavaBean
Thread Safe Servlet
How to obfuscate a j2ee application
how to "clear" jTable