• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

isThreadSafe problem in JSP

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I feel a little bit confuse about isThreadSafe attribute in JSP page directive,
isThreadSafe = "true" then JSP is not implementing SingleThreadModel
and if
isThreadSafe = "false" then JSP is implementing
SingleThreadModel,
I think in semantic meaning by implementing SingleThreadModel then it should be ThreadSafe,
because there will be many instances of that servlet.. so why SUN make the attribute isThreadSafe = "false" then it will implement SingleThreadModel ?? is there any reason behind this ?
Thank you in advance
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

is there any reason behind this ?


Yep, just to confuse you.
Really what it is asking you is. Is the JSP file you created ThreadSafe, if it is, I will not make the servlet, that I am about to create for you, implement SingleThreadModel..
So by stating true, you state yes, I made this JSP threadsafe so you don't have to worry about it.
By stating False you are saying, hey I did nothing to makethis threadsafe, please do it for me.
Hope that helps make it seem less confusing.
Mark
reply
    Bookmark Topic Watch Topic
  • New Topic