struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luiz Henrique Rossetti" <luiz.rosse...@gmail.com>
Subject Re: Interceptor - method init and destroy
Date Mon, 04 Jun 2007 18:47:08 GMT
I solved this problem changing the order of the declaration of the
interceptors in struts.xml :D

On 6/4/07, Luiz Henrique Rossetti <luiz.rossetti@gmail.com> wrote:
>
> 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 <al@al-and-andrea.org.uk> 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:luiz.rossetti@gmail.com]
> > 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: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message