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