struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathew, Manoj" <Mathew.Ma...@principal.com>
Subject RE: Passing Parameters Between Actions
Date Tue, 08 Jul 2003 13:53:58 GMT
it won't .
It look in the config file to get mapping.findForward(FOR_WARD)...thats all..then it will
append the attribute to it. It work's for me
-----Original Message-----
From: Hunter Hillegas [mailto:lists@lastonepicked.com]
Sent: Monday, July 07, 2003 6:32 PM
To: Struts List
Subject: Re: Passing Parameters Between Actions


Won't this look for a forward with '?rec_num=map1' in the name of the
forward?

This is not what I need... I need to make the parameter available to the
second action... But the parameter will change with each request. I can't
hardwire the parameter names into the forward names.

Hunter

> From: "Mathew, Manoj" <Mathew.Manoj@principal.com>
> Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Date: Mon, 7 Jul 2003 15:49:59 -0500
> To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Subject: RE: Passing Parameters Between Actions
> 
> or u can use 
> in action1:
> actionForward = mapping.findForward(FOR_WARD) + "?rec_num=map1";
> 
> -----Original Message-----
> From: Mathew, Manoj
> Sent: Monday, July 07, 2003 3:34 PM
> To: Struts Users Mailing List
> Subject: RE: Passing Parameters Between Actions
> 
> 
> path="/Action2.do?rec_num=map1" />
> 
> request.getParameter("rec_num");
> 
> can use logic:equal if you are forwarding to a JSP
> 
> -----Original Message-----
> From: Hunter Hillegas [mailto:lists@lastonepicked.com]
> Sent: Monday, July 07, 2003 3:03 PM
> To: Struts List
> Subject: Passing Parameters Between Actions
> 
> 
> I am trying to pass a parameter between two actions and running into
> trouble.
> 
> I call action 1 like this: /Action1.do?rec_num=1
> 
> Action1 does some processing and when complete it forwards via an
> ActionForward to Action2 as such:
> 
> <forward name="action2" path="/Action2.do"/>
> 
> Action2 has no way to retrieve the parameter originally passed in to the
> first action, "rec_num". When I try to grab it using request.getParameter()
> I get a NPE.
> 
> I also tried setting it as a request attribute and that didn't work. Session
> might work but I am trying not use sessions.
> 
> Any ideas on what I can do?
> 
> Thanks,
> Hunter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


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


Mime
View raw message