You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org> on 2011/12/09 12:10:40 UTC
[jira] [Updated] (WW-3375) inside is not being
processed -- entire conditional is ignored.
[ https://issues.apache.org/jira/browse/WW-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3375:
------------------------------
Fix Version/s: 3.x
> <s:if> inside <s:url> is not being processed -- entire conditional is ignored.
> ------------------------------------------------------------------------------
>
> Key: WW-3375
> URL: https://issues.apache.org/jira/browse/WW-3375
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.1.8
> Environment: Glassfish v2.1.1
> Reporter: Sam Sorrell
> Priority: Minor
> Fix For: 3.x
>
>
> When an "if" tag is placed within a "url" tag, the "if" tag is completely ignored. For the following example the resulting url will not have a "page" parameter regradless of the value of "parameter".
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:if test="%{bean.primaryKey != null">
> <s:param name="page" value="%{'Update'}"/>
> </s:if>
> <s:else>
> <s:param name="page" value="%{'Add'}"/>
> </s:else>
> </s:url>
> By contrast, the following less concise version has the "page" parameter:
> <s:if test="%{bean.primaryKey != null}">
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:param name="page" value="%{'Update'}"/>
> </s:url>
> </s:if>
> <s:else>
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:param name="page" value="%{'Add'}"/>
> </s:url>
> </s:else>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Updated] (WW-3375) inside is not being
processed -- entire conditional is ignored.
Posted by Rene Gielen <re...@googlemail.com>.
Please unsubscribe yourself. See http://struts.apache.org/dev/dev-mail.html
On 09.12.11 12:13, awhodgson@dsl.pipex.com wrote:
> Please can you remove me from the jira mailing list.
>
> Regards,
>
> Andrew Hodgson
> Sent from my BlackBerry® wireless device
>
> -----Original Message-----
> From: "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>
> Date: Fri, 9 Dec 2011 11:10:40
> To: <is...@struts.apache.org>
> Reply-To: dev@struts.apache.org
> Subject: [jira] [Updated] (WW-3375) <s:if> inside <s:url> is not being
> processed -- entire conditional is ignored.
>
>
> [ https://issues.apache.org/jira/browse/WW-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
>
> Lukasz Lenart updated WW-3375:
> ------------------------------
>
> Fix Version/s: 3.x
>
>
--
René Gielen
http://twitter.com/rgielen
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org
Re: [jira] [Updated] (WW-3375) inside is not being processed -- entire conditional is ignored.
Posted by aw...@dsl.pipex.com.
Please can you remove me from the jira mailing list.
Regards,
Andrew Hodgson
Sent from my BlackBerry® wireless device
-----Original Message-----
From: "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>
Date: Fri, 9 Dec 2011 11:10:40
To: <is...@struts.apache.org>
Reply-To: dev@struts.apache.org
Subject: [jira] [Updated] (WW-3375) <s:if> inside <s:url> is not being
processed -- entire conditional is ignored.
[ https://issues.apache.org/jira/browse/WW-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-3375:
------------------------------
Fix Version/s: 3.x
> <s:if> inside <s:url> is not being processed -- entire conditional is ignored.
> ------------------------------------------------------------------------------
>
> Key: WW-3375
> URL: https://issues.apache.org/jira/browse/WW-3375
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Tags
> Affects Versions: 2.1.8
> Environment: Glassfish v2.1.1
> Reporter: Sam Sorrell
> Priority: Minor
> Fix For: 3.x
>
>
> When an "if" tag is placed within a "url" tag, the "if" tag is completely ignored. For the following example the resulting url will not have a "page" parameter regradless of the value of "parameter".
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:if test="%{bean.primaryKey != null">
> <s:param name="page" value="%{'Update'}"/>
> </s:if>
> <s:else>
> <s:param name="page" value="%{'Add'}"/>
> </s:else>
> </s:url>
> By contrast, the following less concise version has the "page" parameter:
> <s:if test="%{bean.primaryKey != null}">
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:param name="page" value="%{'Update'}"/>
> </s:url>
> </s:if>
> <s:else>
> <s:url id="myHelpUrl" action="myHelpAction" namespace="/myNamespace">
> <s:param name="section" value="%{'Section'}"/>
> <s:param name="component" value="%{'Component'}"/>
> <s:param name="page" value="%{'Add'}"/>
> </s:url>
> </s:else>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira