struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yann Cébron" <yann...@yahoo.de>
Subject Re: Tiles implements Controller does not work with execute()
Date Fri, 19 Sep 2003 19:45:20 GMT
I just had a look at the current code and perform() is still present in the
interface for backwards-compatibility - that's why you must provide a (dummy
empty) method implementing it in your class.

The best solution is probably extending ControllerSupport and overriding its
execute()-method instead of using the Controller interface directly.

>From the JavaDoc:

***
Basic implementation of Controller. Implementations can extend this class to
insulate themselves from changes in the Controller interface
***

HTH,

    Yann

> I did try the struts.jar from the lastest nightly build 20030919.zip
> Is this 1.2?   It looks like the implements Controller abstract interface
> for execute is not being recognized?
>
> Barry
>
>
> ----- Original Message ----- 
> From: "Yann Cébron" <yannc76@yahoo.de>
> To: <struts-user@jakarta.apache.org>
> Sent: Friday, September 19, 2003 12:02 PM
> Subject: Re: Tiles implements Controller does not work with execute()
>
>
> > > Hi,
> > >
> > > docs say not to use the depracated perform().  Use execute() instead.
> > > I require execute() because perform() does not handle SQL exception.
> > >
> > > I get a compile error class LoadUserCategoriesController must use
> abstract
> > > interface perform().
> > >
> >
> > Did you verify you're using a nightly build of Struts (1.2-dev)?
> >
> > Controller#execute() was just added a few days ago, see
> > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19022
> >
> > HTH,
> >     Yann




---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message