TCLUG Development Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TCLUG-DEVEL:280] JSP, Beans and Servlets





Bob Tanner wrote:
> 
> If a JSP (foo.jsp) instantiates a Bean (fooBean.java), can a Servlet
> (fooServlet.java) some how get instantiation of the Bean (fooBean.java) from
> the JVM?

foo.jsp could bind the reference of fooBean into the JNDI.  The
fooServlet could retrieve the reference from there.  Another option is
for foo.jsp to call the fooServlet and pass the fooBean reference. 
Otherwise, I don't see how fooServlet can arbitrarily gain visibility to
fooBean.

-- 
Perry Hoekstra
E-Commerce Architect
Talent Software Service
dutchman@mn.uswest.net