Issue Details (XML | Word | Printable)

Key: STR-2809
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Don Brown
Reporter: Andrzej Turowski
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Struts 1

ImportAttribute does not import all attribute with ignore=true

Created: 24/Mar/06 12:49 AM   Updated: 04/Jul/07 03:36 AM
Return to search
Component/s: Tiles 1 Plugin
Affects Version/s: 1.2.8
Fix Version/s: 1.3.3

Environment:
Operating System: other
Platform: Other

Bugzilla Id: 39084


 Description  « Hide
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'" );

        }

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Don Brown added a comment - 07/May/06 01:08 PM
Makes sense to me. Please close if this fixes your problem.