> -----Original Message----- > From: Michael Delamere [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 07, 2002 11:50 PM > To: Struts Users Mailing List > Subject: Re: Resending parameters > > > Thanks to both your answers but the value comes from the > previous request. > > The "forum_id=someValue" comes from the previously sent > request, how would I > get that parameter at the end of that forward? How about this: ActionForward forward = mapping.findForward("error"); StringBuffer buffer = new StringBuffer(forward.getPath()); buffer.append("?forum_id=") .append(someValue); return new ActionForward( buffer.toString(), forward.getRedirect()); If you want to be a little more careful, you could check for a '?' in the path already, before blindly appending to it, and then use a '&' instead. -- Martin Cooper > > Thanks for your replies! > > Regards, > > Michael > > > ----- Original Message ----- > From: "Trieu, Danny" <[EMAIL PROTECTED]> > To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]> > Sent: Thursday, August 08, 2002 3:24 AM > Subject: RE: Resending parameters > > > > <forward name="error" path="/vm/listThreads.do?forum_id=someValue" > redirect > > ="true" /> > > > > -----Original Message----- > > From: Max Cooper [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, August 07, 2002 4:07 PM > > To: Struts Users Mailing List > > Subject: Re: Resending parameters > > > > Michael, > > > > redirect to /threadOverview.do?forum_id=someValue > > > > That will cause the user's browser to issue a GET request for that > resource > > with the thread_id in the query string (and thus available as a > parameter). > > HTTP does not support POST redirects, so you have to put it > on the query > > string. > > > > -Max > > > > ----- Original Message ----- > > From: "Michael Delamere" <[EMAIL PROTECTED]> > > To: "Struts Users Mailing List" <[EMAIL PROTECTED]> > > Sent: Wednesday, August 07, 2002 1:46 PM > > Subject: Resending parameters > > > > > > > Hi, > > > > > > could someone just give me a short note of how to resend > a parameter > when > > > using action forward, > > > > > > e.g. <forward name="error" path="/vm/listThreads.do" /> > > > > > > Basically if there are no replies to be seen for a > selected thread, I > want > > > to redirect him to the thread overview page for the > previously selected > > > forum. In order to do that though I need to resend the forum_id. > > > > > > Any help would be very appreciated! > > > > > > Thanks, > > > > > > Michael > > > > > > > > > -- > > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > > > > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>