This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Hi, I don't understand the reason why we have to set the page directive isThreadSafe to false if we want the service method to be thread safe. I thought that we have to set it to true... Someone can explain it to me? Thanks. Eric
Eric Benoit<br /> <br />SCJP 1.4<br />SCWCD 1.3<br />SCBCD 1.3 (in progress)
Hello Eric, The logic of using isThread safe is a bit tricky. What it means actually is, when I mark a jsp page with "isThread=true", I say to the container that, "I have developed my jsp in a thread safe manner, so you dont have to worry about it(by implementing the SingleThread interface)". However, if you say "isThread=false", the container steps in and implements the SingleThreadModel for your jsp and thus tries to make it thread safe. I hope this helps. Regards, Vijay