File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "default implementation of JSPs" Watch "default implementation of JSPs" New topic

default implementation of JSPs

Ganapathi Srinivasan
Ranch Hand

Joined: Apr 18, 2001
Posts: 41
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?
chanoch wiggers
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"% of declarration>
if you do this, the server will queueu requests so that only one is answered at a time

chanoch<p><a href="" target="_blank" rel="nofollow">Author of Professional Apache Tomcat</a></p>
I agree. Here's the link:
subject: default implementation of JSPs
It's not a secret anymore!