Hi Yann,
Thanks for your input. I'm sorry... when you say "current" are you talking
about Relase1.1Final
or the nightly build (was trying to avoid that need to make some additional
other changes to compile)?
I was able to get rid of the compile errors in Release 1.1Final extending
ControllerSupport, but when I
put a string in the tiles context it is not recognized.
using the following:
public class LoadUserCategoriesController extends ControllerSupport{
public void execute(ComponentContext tilesContext,HttpServletRequest
request,
HttpServletResponse
response,ServletContext servletContext)throws Exception{
tilesContext.putAttribute("TEST"
, "TEST");
}
}
in tiles-def.xml
<definition name=".view"
path="/tiles/view.jsp"
controllerClass ="com.childrencare.LoadUserCategoriesController">
</definition>
in view.jsp:
<tiles:getAsString name="TEST"/>
----- Original Message -----
From: "Yann C�bron" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 19, 2003 12:45 PM
Subject: Re: Tiles implements Controller does not work with execute()
> 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" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]