Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4461

body of the text tag is evaluated as an ognl expression

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.3.20
    • 2.3.24
    • Plugin - Tags
    • None
    • Struts 2.3.20

    Description

      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.

      Attachments

        Activity

          People

            lukaszlenart Lukasz Lenart
            kzmi Iwasa Kazmi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: