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

ImportAttribute does not import all attribute with ignore=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.8
    • 1.3.3
    • Tiles 1 Plugin
    • None
    • Operating System: other
      Platform: Other
    • 39084

    Description

      If we have a list of attribute and a null value is encountered SKIP_BODY is
      returned and other attributes are not imported into the pageContext.
      I think we need to take out the else clause?

      public int doStartTag() throws JspException
      ....
      ....

      if( value == null )

      { if(!isErrorIgnored) throw new JspException ( "Error - tag importAttribute : property '"+ name + "' has a value of 'null'" ); else return SKIP_BODY; }

      should become

      if( value == null )

      { if(!isErrorIgnored) throw new JspException ( "Error - tag importAttribute : property '"+ name + "' has a value of 'null'" ); }

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            andrzej.turowski@credit-suisse.com Andrzej Turowski
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: