1 / 5
文档名称:

JSP - FAQ (5)(1).txt

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

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

JSP - FAQ (5)(1).txt

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

下载得到文件列表

JSP - FAQ (5)(1).txt

文档介绍

文档介绍:×÷Õߣºjspfuns
ÈÕÆÚ£º2000-8-10 17:54:55
33) Is there some sort of event that happens when a session object gets bound or unbound to the session? TOC
From: "Kirkdorffer, Daniel" <@>
HttpSessionBindingListener will hear the events When an object is added and/or remove from the session object, or when the session is invalidated, in which case the objects are first removed from the session, whether the session is invalidated manually or automatically (timeout).
34) Is there a way to execute a JSP from andline or from my own application? TOC
There is a little tool called JSPExecutor that allows you to do just that. The developers (Hendrik Schreiber <******@> & Peter Rossbach <******@>) aim was not to write a full blown servlet engine, but to provide means to use JSP for generating source code or reports. Therefore most HTTP-specific features (headers, sessions, etc) are not implemented, . no reponseline or header is generated. Nevertheless you can use it to pile JSP for your website. JSPExecutor is GPLed and available at no charge at:

35) What should I use, Model 1 or Model 2? TOC
Whichever one works for you. Model 2 can give you more control, especially if you are doing things such as filtering the actual web pages a client receives because of language. Model 1 is generally more simple. A more full description of Model 1 vs Model