[
https://issues.apache.org/jira/browse/WW-4205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13774521#comment-13774521
]
Lukasz Lenart commented on WW-4205:
-----------------------------------
Empty params are valid and if you wan't to drop them actionRedirect result
already supports that, check the docs and information about:
{code:xml}
<param name="suppressEmptyParameters">true</param>
{code}
http://struts.apache.org/development/2.x/docs/redirect-action-result.html
Also this is related to WW-4088
> Omit empty URL parameters
> -------------------------
>
> Key: WW-4205
> URL: https://issues.apache.org/jira/browse/WW-4205
> Project: Struts 2
> Issue Type: Improvement
> Components: Core Actions
> Affects Versions: 2.3.15.2
> Reporter: Christoph Nenning
> Priority: Minor
> Fix For: 2.3.17
>
> Attachments: no-empty-paras-in-urls.patch
>
>
> Changes DefaultUrlHelper to omit URL parameters when no value is found.
> I would like to have that in the framework as I have often the case that
> actions have optional paramters for filtering/searching objects.
> Currently it happens that e.g. redirect URLs contain all those optional
> parameter names even when there are no values.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira