RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Andrew Hill
Need to modify the URL path of the forward dynamicallyGet the Forward instance as usual. Obtain its url string using getPath(). Add your additional parameter to end of string and create a new ActionForward instance that uses the decorated path (and copies the redirect property from the original

Re: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Max Cooper
Andrew's procedure is what my team has done on one project, too. Originally, we tried getting the ActionForward and changing it directly, but it turns out that is a shared instance and changing the original was messing up other requests. After we discovered this problem, we switched to Andrew's

RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Andrew Hill
From what Ive seen on the list, the way we are using seems to be pretty much standard practice. I did see some activity on the dev list regarding enhancing forwards to make doing this sort of thing easier, though I wasnt following closely so cant tell you what the outcome was. If its something

RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Andrew Hill
btw: stringNotEmpty(parameter) just does a check to see that the parameter isnt null or -Original Message- From: Andrew Hill [mailto:[EMAIL PROTECTED] Sent: Monday, 9 February 2004 17:25 To: Struts Subject: RE: Need to modify the URL path of the forward dynamically From what Ive seen

RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Manjunath Bhat
Hi, You may look into this URL, http://issues.apache.org/bugzilla/show_bug.cgi?id=866 , which addresses similar(same) issue. Also follow the thread redirect=true ActionErrors in this list. Manjunath -Original Message- From: Max Cooper [mailto:[EMAIL PROTECTED] Sent: Monday,

Re: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Adam Hardy
I do what Andrew does too. I don't see it as being too laborious, considering that I feel the ActionForward's original URL should be good enough as it is in most cases not to need appending to. Otherwise I think I would look at redesigning my approach in a more Struts-like manner. On

RE: Need to modify the URL path of the forward dynamically

2004-02-09 Thread Hubert Rabago
Actually, the conversation on the thread redirect=true ActionErrors has moved to direct email communication. If anybody's interested, I can post an update to this list. About two emails should cover it. --- Manjunath Bhat [EMAIL PROTECTED] wrote: Hi, You may look into this URL,