File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 63865

What possible use could this be for a JSP?

[Asking smart questions] [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
It's not a secret anymore!