struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton" <niall.pember...@blueyonder.co.uk>
Subject Re: Which method sets bean into desired scope
Date Tue, 03 Jan 2006 16:43:53 GMT
Theres no way of extending it since all the logic is in a single
execute(ActionContext) method - however you can simply create your own
Command implementation and configure the ComposableRequestProcessor in
Struts 1.3 to use your implementation.

Confuguring Struts 1.3 to use your own command you can simply copy the
default chain-config.xml and modify it to use your Command instead of the
derfault CreateActionForm and add an init parameter to point to your custom
chain-config.xml.

<init-param>
         <param-name>chainConfig</param-name>
         <param-value>WEB-INF/custom-chain-config.xml</param-value>
</init-param>

Niall

----- Original Message ----- 
From: "Jim Reynolds" <jim.jreynold@gmail.com>
Sent: Tuesday, January 03, 2006 4:19 PM


Naill,

Is there a way to extend the CreateActionForm class? It is called from
in the RequestProcessor Class?



On 1/3/06, Niall Pemberton <niall.pemberton@blueyonder.co.uk> wrote:
> Its still in the processActionForm method in Struts 1.2.x - but in Struts
> 1.3 its moved into the CreateActionForm command:
>
>
http://svn.apache.org/viewcvs.cgi/struts/action/trunk/src/java/org/apache/struts/chain/commands/
>
> There is also another place that creates the form beans - the <html:form>
> jsp tag will automatically create the form and store it in the appropriate
> scope if it doesn't exist.
>
> Niall
>
> ----- Original Message -----
> From: "David Evans" <dsevans@berndtgroup.net>
> Sent: Tuesday, January 03, 2006 2:47 PM
>
>
> > In struts 1.1 (the only one i have the source for) its in the
> > processActionForm method.
> >
> > dave
> >
> > On Tue, 2006-01-03 at 08:38 -0600, Jim Reynolds wrote:
> > > Hello and Happy New Year
> > >
> > > I am trying to figure out which method (of the many) in the request
> > > processor physically takes the form bean and sets it into the desired
> > > scope?  Based upon the configuration for said Action Mapping.
> > >
> > > Regards
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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





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


Mime
View raw message