Paul Clapham wrote:. It should never be updating the state of any objects in the application, and that's the only time when thread safety is an issue. So for properly-written JSPs, thread safety is irrelevant.
Jayesh A Lalwani wrote:I might be mistaken, but I always thought that any variables in the jsp would be local scoped. Is that wrong?
Bear Bibeault wrote:I'll disagree with Tim somewhat. The notion of using stale data isn't a thread-safety issue. The same thing can happen if anyone brings up a form loaded with current data, goes to lunch, and then submits the form, over-writing changes that someone else made while they were chowing down on chicken fingers. It's a real problem, but it's not a thread-safety issue.
Like a Java class, a JSP isn't inherently thread-safe or not thread-safe, it's what one does in the JSP that makes it thread-safe or not.