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

<s:hidden> tag should interpret its value attribute same as the other tags do.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.8
    • Fix Version/s: 2.5.x
    • Component/s: Plugin - Tags
    • Labels:
      None

      Description

      According to http://struts.apache.org/2.1.8.1/docs/tag-syntax.html , any attribute value="" is interpreted for OGNL.

      This is not true for <s:hidden ... value="myprop" /> , which will use the literal string "myprop".

      To get it to call my bean's getMyprop(), I need to say <s:hidden ... value="%{myprop}" />

      Would be nice if this could be streamlined, so s:hidden conforms to the general principle.

      As that change might break existing code, it might be more easily asked for than done.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              andreas.krueger@dv-ratio.com Andreas Krüger
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: