This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Implementing SingleThreadedModel using JSP

 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65105
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What possible use could this be for a JSP?
 
C Vivek
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most containers implement isThreadSafe="false' by creating a servlet that implements SingleThreadModel.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic