RE: Adding parameter to local forwards

2005-06-12 Thread Abhinav Bhatnagar
ailto:[EMAIL PROTECTED] On Behalf Of Laurie Harper Sent: Saturday, June 11, 2005 12:25 AM To: user@struts.apache.org Subject: Re: Adding parameter to local forwards If a redirect rather than a forward is acceptable, you can also look at ActionRedirect (new in 1.2.7). ActionForwar

Re: Adding parameter to local forwards

2005-06-10 Thread Yuniar Setiawan
Thank you all for the replies...that was i'm looking for ;)

Re: Adding parameter to local forwards

2005-06-10 Thread Laurie Harper
If a redirect rather than a forward is acceptable, you can also look at ActionRedirect (new in 1.2.7). ActionForward fwd = mapping.findForward(...); ActionRedirect ar = new ActionRedirect(fwd); ar.addParameter("name", f.getString("name")); return ar; L. Michael

Re: Adding parameter to local forwards

2005-06-10 Thread Michael Jouravlev
Something like this: ActionForward af = mapping.findForward("showParentForm"); return new ActionForward( actionForward.getName(), actionForward.getPath() + "?drawing_id=24", actionForward.getRedirect() ); You must create a new instance of ActionForward, you cannot change existing one, since

Adding parameter to local forwards

2005-06-10 Thread Yuniar Setiawan
Hi all, I have a configuration like this one below: now inside the SubmitDrawingUploadAction class usually i just need the following statement to forward to DrawingUpdate.do : return mapping.findForwards("showParentForm"); the question is, what if I want to add extra parameter?? so it would