Hi, thank you very much.

But I got the "java.lang.IllegalStateException:
Configuration is frozen" 

exception. 

Could you please help me?

Thanks,
qq


--- "Givler, Eric" <[EMAIL PROTECTED]> wrote:

> Can't you do something like this:
> 
>   fwd = mapping.findForward( "gf_action2" );
>   fwd.setPath( fwd.getPath() + "?id=100");
>   return fwd;
> 
> gf_action2 would be a global-forward to action2.
> 
> -----Original Message-----
> From: Tony Smith [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 22, 2006 10:46 AM
> To: Struts Users Mailing List
> Subject: pass parameter between actions
> 
> 
> Hi, 
> 
> I have to actions, action1 and action2, 
> 
> <action
>     path="/action1"
>     type="JavaCodeAction1"
>     name="action1Form"
>     scope="request"
>     validate="true">
>     <forward name="success" path="action1"/>
>     <forward name="default" path="/home.do"/>
> </action>           
>          
> 
> <action
>     path="/action2"
>     type="JavaCodeAction2"
>     name="action2Form"
>     scope="request"
>     validate="true">
>     <forward name="success" path="something"/>
>     <forward name="default" path="/home.do"/>
> </action>
> 
> Inside action1, 
> 
>     protected ActionForward execute(
>          ActionMapping mapping, 
>          ActionForm form,
>          HttpServletRequest request,        
>          HttpServletResponse respose)
>             throws Exception {
>   
>        String id = 100; //or other number
>          ....
> 
>     }
> 
> Once action1 is successful, I would like to call
> action2 with the link action2.do?id=100. However, I
> do
> not know how to pass the parameter "id" to action2. 
> 
> Could anyone help?
> 
> Thanks,
> 
> qq
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam
> protection around 
> http://mail.yahoo.com 
> 
>
---------------------------------------------------------------------
> 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]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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

Reply via email to