Originally posted by lokesh reddy:
The jsp page by default is not thread safe, if u want to make it thread safe then you have add [isThreadSafe=false] in your jsp page declaration.
if u want to make it thread safe then you have add [isThreadSafe=false]... it sure looks looks odd when you put it that way

Whether your JSP is treadsafe or not is a consequence of the way you implemented your JSP. Strictly speaking you cannot change that simply by modifying an attribute. JSPs are normally perfectly threadsafe, since your run of the mill JSP does not hold any state (member variables). Generally only when you introduce member variables into the JSP object does it become thread-unsafe.
If your JSP is not threadsafe you will have to add the
isThreadSafe="false" (note quotes) in order for things to work correctly. I'm probably a bit pedantic when I say that it does not make your JSP threadsafe but it does make your web application threadsafe by instructing the servlet container to cater for the thread-unsafety of your JSP.
- Peter