I am going from a html-->servlet-->output to a jsp-->javabean-->jsp
configuration.
In my servlet I connect via JNDI like this:
public void init(ServletConfig config) throws ServletException{
super.init(config);
try{
Context env = (Context) new
InitialContext().lookup("java:com
04 12:58 PM
> To: [EMAIL PROTECTED]
> Subject: Database connection going from servlet to a bean
>
>
> I am going from a html-->servlet-->output to a
> jsp-->javabean-->jsp configuration.
>
> In my servlet I connect via JNDI like this:
> public void init(
iewing, so where do I release my connection back into the pool?
TIA
Tom K.
-Original Message-
From: Mike Curwen [mailto:[EMAIL PROTECTED]
Sent: Monday, March 22, 2004 1:31 PM
To: 'Tomcat Users List'
Subject: RE: Database connection going from servlet to a bean
There is a jspIn
Hi,
>Mike thanks for the feedback, but is this the practical solution? For
>example, I am using a connection pool, the init is only done once, the
>bean does the processing, after the processing it done (that is the
>beans "set" their properties) the results are forwarded to another jsp
>for view
;s how I'd do it (and have done
it *meep*) ;)
> -Original Message-
> From: Tom K [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 22, 2004 1:40 PM
> To: 'Tomcat Users List'
> Subject: RE: Database connection going from servlet to a bean
>
>
> Mike thanks for
PROTECTED]
Sent: Monday, March 22, 2004 1:42 PM
To: Tomcat Users List
Subject: RE: Database connection going from servlet to a bean
Hi,
>Mike thanks for the feedback, but is this the practical solution? For
>example, I am using a connection pool, the init is only done once, the
>bean does