文档介绍:×÷Õߣºjspfuns
ÈÕÆÚ£º2000-8-10 17:50:50
18) What do the differing levels of bean storage (page, session, app) mean? TOC
From: Joe Shevland <J_******@.au>
The spec is not clear on what the Application level scope actually means, but the general discussion has it that an Application is a single JSP whose beans persist from call to call - unlike those beans which have the "page" scope. That said, the spec still stores "application" beans at the servlet level so they can actually be used by multiple servlets.
(From Gabriel Wong <gabrielw@>)
In purely Servlet terms, they mean:
page - NO storage
session - (true).putValue("myobjectname",myobject);
application - getServletConfig().getServletContext().setAttribute("myobjectname",myobject);
request - The storage exists for the lifetime of the request, which may be forwarded between jsp's and servlets.
19) Where can I find the mailing list archives? TOC
Archives of the JSP mailing list are available at ./archives/jsp-
These archives are searchable.
20) What are the important steps in using JDBC in JSP? TOC
Instantiate an instance of the JDBC driver you're trying to use (jdbc-odbc bridge name from memory so pls check):
( "" ).newInstance();
This determines if the class is available and instantiates a new instance of it,