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

Attribute value for RadioTag property checked not well formed for XSL/XML parsers

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0 Beta 2
    • Fix Version/s: 1.0.0
    • Component/s: Tag Libraries
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      1943

      Description

      The checked attribute of RadioTag should be assigned value like

      checked="true" instead of just putting the attribute as checked.

      The fix is simple and should be done in
      org/apache/struts/taglib/html/RadioTag.java at line 227 in ver 1.0 b2.
      Change line 227: results.append(" checked");
      to : results.append(" checked=\"true\"");

      Similarly change
      OptionsTag.java
      Change line 295: sb.append(" selected");
      to : sb.append(" selected=\"true\"");
      OptionTag.java
      Change line 251: results.append(" disabled");
      to : results.append(" disabled=\"true\"");
      Change line 253: sb.append(" selected");
      to : sb.append(" selected=\"true\"");

        Attachments

          Activity

            People

            • Assignee:
              craigmcc Craig R. McClanahan
              Reporter:
              pgondalia@yahoo.com Paresh Gondalia
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: