I've enjoyed reading the thread on Pagelets, but I'm not convinced the whole
of the Pagelet proposal is needed.  But I could well be missing something
here (all clues appreciated!)

>From what I can gather, all you require is for a bean to have a destroy()
method called, if it has one.  I.e., if the bean scope is "page" and it has
a destroy method, call that method at the end of the page.  You can extend
this to calling destroy at the end of the request if the scope was request
and so on. (Hold on... in what order would you destroy them? Would it
matter?)

The rest of the aims -- I *think* --- are already handled in the servlet/JSP
specs.  For example, the beans can be initialized via the Method 2 way of
doing things:  you write a servlet to create the beans, and then
setAttribute() them before calling the dispatcher to forward to a JSP page.
In the jdbcConnection/allUsers/allGroups example, you would do all the work
(SQL etc) in the servlet and forward the populated beans on for display in
the JSP.

Richard


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to