Hello -
I'm seeking advice on using Factory objects in my Servlets. Currently my
servlets are instantiating and stuffing Beans that get passed to my JSP's
for display. As my servlets are getting a little long in tooth, I've been
wanting to rewrite my servlets to use factory objects to create the beans
for me and return the reference to the calling servlet. Currently I'm using
a switch statement in my servlets which get passed a hidden field which
determines what the servlet should do. This is less than ideal :-)
I'm wondering if anyone has any advice on how to easily do this with the
factory objects. Are developers passing HttpServletRequest objects to your
factories? What about JDBC connection objects and other shared servlet
resources? As I have a large number of shared resources, I was wondering if
developers are passing a ServletContext reference in to handle this or what
the preferred methods are.
Thanks for any advice.
Mike
===========================================================================
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