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" <[EMAIL PROTECTED]> > Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > Date: Mon, 7 Jul 2003 15:49:59 -0500 > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > 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:[EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]