> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> 
> On Fri, 14 Feb 2003, PILGRIM, Peter, FM wrote:
> 
> > >
> > > Am I missing something, or can't you just say:
> > >
> > >   <controller processorClass="com.mycompany.MyRequestProcessor"/>
> > >
> > > and be done with it?
> >
> > Craig
> >
> > I certainly could do that and I am doing that, but I want to
> > force the custom request processor,
> > because I am package Struts as part of Expresso?
> >
> 
> How about defining an ExpressoPlugIn that configures 
> everything you need
> at startup time?  PlugIns run after the struts-config.xml 
> file has been
> digested, but before the configuration information is frozen, 
> so they can
> do things like:
> 
>   ModuleConfig modConfig =
>     servlet.getServletContext().getAttribute(Globals.APPLICATION_KEY);
>   ControllerConfig contConfig = modConfig.getControllerConfig();
>   contConfig.setProcessorClass("com.mycompany.MyRequestProcessor");
> 
> This technique can be used for pretty much any sort of 
> modifications to
> the configured information.
> 
> Another alternative (recently added in the 1.1 tree) is to add some
> Digester rules that are included in the set used to parse
> struts-config.xml (see the "rulesets" init parameter on 
> ActionServlet).
> If you couple that with turning validation off, you can even add
> additional configuration elements and attributes into the 
> standard config
> file -- I think the STXX folks are planning to take advantage 
> of this to
> define their processing pipelines inside an <action> element.

Thanks a lot Craig,

After the valentine, I got some work to do now on Sunday morning!

--
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]

Reply via email to