Ok!!! Now, the prepare() method in the Preparable interface executes before
the call of the method intercept()? I have some troubles in calling these
methods. When my action classes implement the Preparable interface, the
prepare() method is always called before intercept() method. How can I solve
this problem?

On 6/4/07, Al Sutton <[EMAIL PROTECTED]> wrote:

Init and destroy are only called when the interceptor is initialised when
the servlet engine starts, and destroyed when the servlet engine is
stopped.

You should do all your jdbc connection work in the intercept method.

-----Original Message-----
From: Luiz Henrique Rossetti [mailto:[EMAIL PROTECTED]
Sent: 04 June 2007 18:37
To: user@struts.apache.org
Subject: Interceptor - method init and destroy

When trying to execute the method "init" and "destroy", it´s doesn´t
execute.
Somebody has some example of the Interceptor class that implements "open"
and "close" jdbc connections?

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to