struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4631) Empty <s:param name="p1" value=""/> is being supressed
Date Fri, 23 Sep 2016 13:39:20 GMT

    [ https://issues.apache.org/jira/browse/WW-4631?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15516476#comment-15516476
] 

Hudson commented on WW-4631:
----------------------------

SUCCESS: Integrated in Jenkins build Struts-JDK7-master #530 (See [https://builds.apache.org/job/Struts-JDK7-master/530/])
WW-4631: unified behavior for empty url parameters (cnenning: rev e7ce5dcc0dc576fe8081c66e17b57b30257af9f4)
* (edit) core/src/test/java/org/apache/struts2/views/jsp/URLTagTest.java
* (edit) core/src/main/java/org/apache/struts2/components/Param.java


> Empty <s:param name="p1" value=""/> is being supressed
> ------------------------------------------------------
>
>                 Key: WW-4631
>                 URL: https://issues.apache.org/jira/browse/WW-4631
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.28
>            Reporter: Greg Lindholm
>            Assignee: Christoph Nenning
>            Priority: Minor
>             Fix For: 2.5.3
>
>
> I discovered a problem with the <s:param /> tag when attempting to pass an empty
parameter.
> <s:url var="myUrl" action='MyAction'>
>      <s:param name="p1" value=""/>
>      <s:param name="p2"></s:param>
> </s:url>
> I was attempting to pass an empty parameter using the "p1" syntax above and the parameter
was being suppressed.
> Using the "p2" syntax it works correctly, and the empty parameter is included.
> The doc http://struts.apache.org/docs/param.html says that "suppressEmptyParameters"
defaults to false but the p1 parameter was always suppressed even if I added suppressEmptyParameters="false".
> Also the doc http://struts.apache.org/docs/param.html has an incorrect example on how
to use the suppressEmptyParameters option.
> <s:param name="suppressEmptyParameters" value="true"/>



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message