I'm new to JSPs and this list so excuse the newbie question ...

I just read a message that had code in the JSP page for init and destroy,
pretty much like a servlet.

Now, I know that JSPs map to servlets, but is it common convention to
implement these methods (init/destroy) ? It would seem to that adding
this type of code to a JSP page is a bit much. Wouldn't it be better to
do DB connections in a bean and/or some type of singleton object outside
of the page ?

Augusto
----------
Message To Spammers -- Game Over!  Get spam-free email at http://www.MsgTo.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to