This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Implementing SingleThreadedModel using JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Implementing SingleThreadedModel using JSP" Watch "Implementing SingleThreadedModel using JSP" New topic

Implementing SingleThreadedModel using JSP

C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
Hello Guys,
I know SingleThreadedModel is a very poor design pattern, but I just would like to know how I can implement it using a JSP. I know how to do it using a servlet
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60800

What possible use could this be for a JSP?

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
C Vivek
Ranch Hand

Joined: Oct 03, 2004
Posts: 115
I know its not of much use but I just tried to imagine if it was possible since JSP's are converted into Servlets internally, I just thought there might be some way!
I promise I wouldnt put to any use!
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

Most containers implement isThreadSafe="false' by creating a servlet that implements SingleThreadModel.

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: Implementing SingleThreadedModel using JSP
Similar Threads
Why is my servlet loaded twice?
Front Controller and Commands
thread safe variables
SingleThreadModel or MultiThreadModel?