struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PILGRIM, Peter, FM" <Peter.PILG...@rbos.com>
Subject RE: composable RequestProcessor
Date Mon, 02 Jun 2003 14:48:06 GMT
The controller that I have seen, appear only to subclass one or two methods.
In other wards the controllers are specialising certain methods only.
Some of these methods are returning an object. Be it an ActionForward
or java.lang.String at some point you have to decide which return
value should be returned.

ActionForward doForward( ... ) {

    ActionForward f1 = tiles.doForward();
    ActionForward f2 = expresso.doForward();

    return f1 // or is f2 
}

Any generic XML configuration for composable request processor
has to solve this problem satisfactorily.

There is high investment time for the XML configuring approach
compared to straight aggregation approach with the interfaces.
It is quicker and may be easier to write aggregated controllers.

What is the URL (strutschaining.sourceforge.net)?
The Strutschaining guys only have to deal with one method
Struts' Action.execute(...) method. They have build a 
separate XML daisy chain, but it is easier for them because
there only one method to intercept. RequestProcessor has
lots of `process*' methods, the solution is not trival.

--
Peter Pilgrim,
Struts/J2EE Consultant, RBoS FM, Risk IT
Tel: +44 (0)207-375-4923


> -----Original Message-----
> From: Matthias Bauer [mailto:Matthias.Bauer@livinglogic.de]
> Sent: 02 June 2003 15:55
> To: Struts Developers List
> Subject: Re: composable RequestProcessor
> 
> 
> Rephrasing it, would help me, too  ;-)
> 
> Brandon Goodin wrote:
> 
> >>The controllers that I have seem only subclass one or two methods
> >>of the RequestProcessor class itself. Compared your approach
> >>and the StrutsChaining guys and realise there are only intercepting
> >>the ubiquitous ``execute'' Command method, and not all ten
> >>`process*Whatever()' methods.
> >>    
> >>
> >
> >Peter,
> >I've been following this thread. Very interesting. But, you 
> lost me at the
> >afformentioned paragraph. Your english got a little fuzzy 
> :-D. Could you
> >please explain your point a little clearer. It sounds like a 
> beneficial
> >point. But, I'm not sure if I'm understanding it correctly.

--////--


********************************************************************
      Visit our Internet site at http://www.rbsmarkets.com

This e-mail is intended only for the addressee named above.
As this e-mail may contain confidential or privileged information,
if you are not the named addressee, you are not authorised to
retain, read, copy or disseminate this message or any part of it.
The Royal Bank of Scotland plc is registered in Scotland No 90312
Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB
Regulated by the Financial Services Authority
********************************************************************

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


Mime
View raw message