File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes isThreadSafe problem in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "isThreadSafe problem in JSP" Watch "isThreadSafe problem in JSP" New topic
Author

isThreadSafe problem in JSP

Michael Santosa
Greenhorn

Joined: Mar 13, 2002
Posts: 19
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
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16617

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
IntelliJ Java IDE
 
subject: isThreadSafe problem in JSP
 
Threads others viewed
Thread Safe Objects
If we declare a page isThreadSafe="false" then how the page will act?
JSP - single threaded
What is thread safe?
about isThreadSafe
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture