cedric      2002/07/24 02:38:44

  Modified:    src/share/org/apache/struts/taglib/tiles
                        UseAttributeTag.java ImportAttributeTag.java
  Log:
  Correct messages reported by exceptions.
  
  Revision  Changes    Path
  1.2       +5 -5      
jakarta-struts/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java
  
  Index: UseAttributeTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/tiles/UseAttributeTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- UseAttributeTag.java      25 Jun 2002 03:16:30 -0000      1.1
  +++ UseAttributeTag.java      24 Jul 2002 09:38:44 -0000      1.2
  @@ -197,13 +197,13 @@
   
       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" );
  +      throw new JspException ( "Error - tag useAttribute : no tiles context found." 
);
   
       Object value = compContext.getAttribute(attributeName);
           // Check if value exist and if we must send a runtime exception
       if( value == null )
         if(!isErrorIgnored)
  -        throw new JspException ( "Error - tag.useAttribute : attribute '"+ 
attributeName + "' not found in context. Check tag syntax" );
  +        throw new JspException ( "Error - tag useAttribute : attribute '"+ 
attributeName + "' not found in context. Check tag syntax" );
          else
           return SKIP_BODY;
   
  
  
  
  1.2       +5 -5      
jakarta-struts/src/share/org/apache/struts/taglib/tiles/ImportAttributeTag.java
  
  Index: ImportAttributeTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-struts/src/share/org/apache/struts/taglib/tiles/ImportAttributeTag.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ImportAttributeTag.java   25 Jun 2002 03:16:30 -0000      1.1
  +++ ImportAttributeTag.java   24 Jul 2002 09:38:44 -0000      1.2
  @@ -169,7 +169,7 @@
         // retrieve component context
       ComponentContext compContext = (ComponentContext)pageContext.getAttribute( 
ComponentConstants.COMPONENT_CONTEXT, pageContext.REQUEST_SCOPE);
       if( compContext == null )
  -        throw new JspException ( "Error - tag.useProperty : component context is 
not defined. Check tag syntax" );
  +        throw new JspException ( "Error - tag importAttribute : no tiles context 
found." );
   
         // set scope
       scope = TagUtils.getScope( scopeName, PageContext.PAGE_SCOPE );
  @@ -181,7 +181,7 @@
           // Check if value exist and if we must send a runtime exception
         if( value == null )
           if(!isErrorIgnored)
  -          throw new JspException ( "Error - tag.useProperty : property '"+ name + 
"' not found in context. Check tag syntax" );
  +          throw new JspException ( "Error - tag importAttribute : property '"+ name 
+ "' not found in context. Check tag syntax" );
            else
             return SKIP_BODY;
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to