History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: STS-244
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Tim Fennell
Reporter: Tim Fennell
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Stripes

Redirect/ForwardResolution.addParameter doesn't work correctly if called repeatedly with the same parameter name

Created: 18/Aug/06 10:47 AM   Updated: 17/Mar/07 01:10 PM
Component/s: ActionBean Dispatching
Affects Version/s: None
Fix Version/s: Release 1.4.3


 Description  « Hide
You might expect the following:
   new RedirectResolution("/foo.jsp").addParameter("bar", "one").addParameter("bar", "two");

to produce a redirect to "/foo.jsp?bar=one&bar=two", but it's actually just overriding it to "/foo.jsp?bar=two".

It's not as horrible as it might sound, because the workaround is just to use the var-arg method call: addParameter("bar", "one", "two"), but it would be better and convenient if ti worked for multiple calls.


 All   Comments   Change History      Sort Order:
Tim Fennell [14/Oct/06 10:59 AM]
Fixed. In addition, UrlBuilder now supports the adding of arbitrarily nested arrays/collections just in case.