You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Jim Reynolds <ji...@gmail.com> on 2006/01/03 15:38:10 UTC

Which method sets bean into desired scope

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


Re: Which method sets bean into desired scope

Posted by Srinivas Jadcharla <jd...@gmail.com>.
May be this article is helpful.If it is helpful please let us know.

http://www.onjava.com/pub/a/onjava/2004/11/10/ExtendingStruts.html



On 1/3/06, Jim Reynolds <ji...@gmail.com> 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
>
>


--
Thanks & Regards
Srinivas
732-648-9421(Cell)

Re: Which method sets bean into desired scope

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
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" <ji...@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 <ni...@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" <ds...@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


Re: Which method sets bean into desired scope

Posted by Jim Reynolds <ji...@gmail.com>.
Naill,

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



On 1/3/06, Niall Pemberton <ni...@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" <ds...@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


Re: Which method sets bean into desired scope

Posted by Niall Pemberton <ni...@blueyonder.co.uk>.
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" <ds...@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


Re: Which method sets bean into desired scope

Posted by David Evans <ds...@berndtgroup.net>.
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