struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4461) body of the text tag is evaluated as an ognl expression
Date Mon, 09 Feb 2015 07:07:35 GMT

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

Lukasz Lenart commented on WW-4461:
-----------------------------------

yeah... it looks you are right but you can set {{searchValueStack="false"}} attribute to solve
that particular problem.

> body of the text tag is evaluated as an ognl expression
> -------------------------------------------------------
>
>                 Key: WW-4461
>                 URL: https://issues.apache.org/jira/browse/WW-4461
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.20
>         Environment: Struts 2.3.20
>            Reporter: Iwasa Kazmi
>             Fix For: 2.3.22
>
>
> If the named message does not exist in the property files,
>    <s:text name="terms.email">e-mail</s:text>
> is rendered as "0".
> Maybe the body of the tag was evaluated as an OGNL expression. ("e" minus "mail")
> If the name exists in the property file like:
>    terms.email=e-mail
> it is rendered as "e-mail".
> This behavior is strange.
> http://struts.apache.org/docs/text.html says,
> "If the named message is not found in a property file, then the body of the tag will
be used as default message."
> So a message in the body of the tag should be used as it is
> like a message in the .properties file.



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

Mime
View raw message