On Thu, 13 Feb 2003, PILGRIM, Peter, FM wrote:

> Date: Thu, 13 Feb 2003 17:31:24 -0000
> From: "PILGRIM, Peter, FM" <[EMAIL PROTECTED]>
> Reply-To: Struts Developers List <[EMAIL PROTECTED]>
> To: 'Struts Developers List' <[EMAIL PROTECTED]>
> Subject: RE: Forcing or replacing a request processor version 1.1 beta3 -
>
>
> > -----Original Message-----
> > From: David Graham [mailto:[EMAIL PROTECTED]]
> > -
> >
> >
> > >I do not want to change the configuration for all time.
> > >I alway want to suggest at initialisation that object class B should
> > >be used instead A and do that programmatically.
> >
> > Well, you can specify your own config objects on some
> > struts-config.xml
> > elements at deployment.  Couldn't you write a config object
> > that handled the
> > required behavior internally?
>
> Yeah! You have a point I could subclass the ModuleConfigImpl  and
> set the request processor. Seems pretty drastic for a such a simple
> task.

Am I missing something, or can't you just say:

  <controller processorClass="com.mycompany.MyRequestProcessor"/>

and be done with it?

Craig


>
> > For 2.0 we should look at the config subsystem and maybe
> > define them as
> > interfaces and use a factory to get the implementation class.
> >  Then, maybe
> > instead of specifying config subclasses in struts-config.xml we would
> > specify the config factory to use.  IMHO, this would make the
> > configuration
> > much more flexible.
> >
> > David
>
> --
> Peter Pilgrim,
> Struts/J2EE Consultant, RBoS FM, Risk IT
> Tel: +44 (0)207-375-4923
>
>
> ********************************************************************
>       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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to