You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by mule_user <sg...@aol.com> on 2008/02/20 23:49:55 UTC

Struts 1.1 - Value of ActionForm in chained next Action

This is the scenario using Struts 1.1: 

User Interface -> MyAction1 (input is Form1)-> MyAction 2 (input is Form2)
->User Interface 

MyAction1 and MyAction2 are Action classes. 

MyAction1 and MyAction1 are configured in struts-config.xmxl. 

MyAction1 takes Form1 as input. 

MyAction2 takes Form2 as input. 

Form1 and Form2 are ActionForms. 

Following are the questions: 

1. If Form1 and Form2 are of the same class, will Form2 get magically
populated by the values obtained from Form1, when Action1 forwards to
Action2? 
2. Will Form2 values be empty? 
3. If Form1 and Form2 are of different class, then what value will Form2
have? 
4. If Form1 and Form2 are of the same class, then what value will Form2
have? 
5. Is it a good idea to do Action chaining? Servlet chaining was never
recommended. 
-- 
View this message in context: http://www.nabble.com/Struts-1.1---Value-of-ActionForm-in-chained-next-Action-tp15600863p15600863.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


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


Re: Struts 1.1 - Value of ActionForm in chained next Action

Posted by Antonio Petrelli <an...@gmail.com>.
Please post this question to the Struts Users mailing list:
http://struts.apache.org/mail.html

Antonio

2008/2/20, mule_user <sg...@aol.com>:
>
>
> This is the scenario using Struts 1.1:
>
> User Interface -> MyAction1 (input is Form1)-> MyAction 2 (input is Form2)
> ->User Interface
>
> MyAction1 and MyAction2 are Action classes.
>
> MyAction1 and MyAction1 are configured in struts-config.xmxl.
>
> MyAction1 takes Form1 as input.
>
> MyAction2 takes Form2 as input.
>
> Form1 and Form2 are ActionForms.
>
> Following are the questions:
>
> 1. If Form1 and Form2 are of the same class, will Form2 get magically
> populated by the values obtained from Form1, when Action1 forwards to
> Action2?
> 2. Will Form2 values be empty?
> 3. If Form1 and Form2 are of different class, then what value will Form2
> have?
> 4. If Form1 and Form2 are of the same class, then what value will Form2
> have?
> 5. Is it a good idea to do Action chaining? Servlet chaining was never
> recommended.
>
> --
> View this message in context:
> http://www.nabble.com/Struts-1.1---Value-of-ActionForm-in-chained-next-Action-tp15600863p15600863.html
> Sent from the Struts - Dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>