This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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: 63355

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
jQuery in Action, 3rd edition