cedric 02/04/15 01:23:09 Modified: contrib/tiles/src/share/org/apache/struts/taglib/tiles UseAttributeTag.java Log: Add release of variable 'id' in release method (bug reported by Heath Chiavettone) Revision Changes Path 1.3 +7 -4 jakarta-struts/contrib/tiles/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java Index: UseAttributeTag.java =================================================================== RCS file: /home/cvs/jakarta-struts/contrib/tiles/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- UseAttributeTag.java 27 Dec 2001 17:35:37 -0000 1.2 +++ UseAttributeTag.java 15 Apr 2002 08:23:09 -0000 1.3 @@ -1,7 +1,7 @@ /* - * $Header: /home/cvs/jakarta-struts/contrib/tiles/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java,v 1.2 2001/12/27 17:35:37 cedric Exp $ - * $Revision: 1.2 $ - * $Date: 2001/12/27 17:35:37 $ + * $Header: /home/cvs/jakarta-struts/contrib/tiles/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java,v 1.3 2002/04/15 08:23:09 cedric Exp $ + * $Revision: 1.3 $ + * $Date: 2002/04/15 08:23:09 $ * $Author: cedric $ * */ @@ -74,6 +74,9 @@ scope = PageContext.PAGE_SCOPE; scopeName = null; isErrorIgnored = false; + // Parent doesn't clear id, so we do it + // bug reported by Heath Chiavettone on 18 Mar 2002 + id = null; } /** @@ -136,7 +139,7 @@ { if( id==null ) id=attributeName; - + ComponentContext compContext = (ComponentContext)pageContext.getAttribute( ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE); if( compContext == null ) throw new JspException ( "Error - tag.useAttribute : component context is not defined. Check tag syntax" );
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>