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 Mon, 07 Jul 2003 20:34:19 GMT
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


Mime
View raw message