Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-1305

Add <html:label> tag to output HTML label

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: In Progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.4.0
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      18015

      Description

      It would be useful to have a tag that just writes a form's value.
      We already have one:

      <html:hidden property="foo" write="true" />

      The problem is that it generates a HTML INPUT in addittion to the text. That
      INPUT could interfere with the form's submission, and it adds bloat to the
      page.It would be nice to have a custom tag just to generate the form's text.

      I know i could also expose the form as a bean (I guess it would be <bean:struts
      ... />). But that could tie the JSP to the form's name, and that's not a good think.

      Maybe the tag could be something like:

      <html:label property="foo" />

      And it would get property "foo" from the form and write it like a bean:write. It
      could be even:

      <html:label property="foo.x.y.z" />

      Leonardo

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pbenedict Paul Benedict
                Reporter:
                lquijano@hotpop.com Leonardo Quijano
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: