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

Make the 'name' attribute value accessible to jsp

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.2.8
    • Future
    • Tag Libraries
    • None
    • Operating System: other
      Platform: Other
    • 38446

    Description

      In case there is a need to have javascript or similar to access value of the
      field, its name, or id must be provided. When a field is under
      nested->nested->iterate->nested->iterate this name is rather complex and there
      is no way to read it from the taglib.
      So following extensions to html tags would be nice:

      • writeNameTo="page/session_attrName" writeNameToScope="page|session"
        and when it is set, the calculated 'name' value would be written to the property.
        Additionally when such value is needed before the field is rendered, following
        tag would be nice:
        nested:writeName property="" name="" writeNameTo="page/session_attrName"
        writeNameToScope="page|session"

      Attachments

        Activity

          People

            Unassigned Unassigned
            tomasz.bech@bull.com.pl Tomasz Bech
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: