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
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
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
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
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,
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
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,
7 matches
Mail list logo