1 / 6
文档名称:

JSP - FAQ (3)(2).txt

格式:txt   页数:6
下载后只包含 1 个 TXT 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

JSP - FAQ (3)(2).txt

上传人:管理资源吧 2011/9/11 文件大小:0 KB

下载得到文件列表

JSP - FAQ (3)(2).txt

文档介绍

文档介绍:×÷Õߣº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,