JSP provides a means to turn off threading through the page directive attribute, <%@ page isThreadSafe="false" %>. This forces the page to be created under the SingleThreadModel, which allows only one request to be handled by the page at a time.
This option is not 100% effective. Variables created in the session or application scope may still be affected by multiple instances.
It is not recommended to use SingleThreadModel in the recent servlet spec.