jakarta-taglibs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql QueryTagSupport.java
Date Tue, 30 Apr 2002 16:40:46 GMT
luehe       02/04/30 09:40:45

  Modified:    standard/src/org/apache/taglibs/standard/resources
                        Resources.properties
               standard/src/org/apache/taglibs/standard/tag/common/fmt
                        FormatNumberSupport.java
               standard/src/org/apache/taglibs/standard/tag/common/sql
                        QueryTagSupport.java
  Log:
  - Include root cause when setting currency fails in <fmt:formatNumber>
  - Applied patch provided by Ryan Lubke which improves error message on invalid
    data source
  
  Revision  Changes    Path
  1.32      +4 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources.properties
  
  Index: Resources.properties
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/resources/Resources.properties,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- Resources.properties	29 Apr 2002 19:39:43 -0000	1.31
  +++ Resources.properties	30 Apr 2002 16:40:45 -0000	1.32
  @@ -110,6 +110,9 @@
   FORMAT_NUMBER_PARSE_ERROR=\
       In &lt;formatNumber&gt;, 'value' attribute can not be parsed into java.lang.Number:
"{0}"
   
  +FORMAT_NUMBER_CURRENCY_ERROR=\
  +    In &lt;formatNumber&gt;, unable to set currency
  +
   PARSE_NUMBER_INVALID_TYPE=\
       In &lt;parseNumber&gt;, invalid 'type' attribute: "{0}"
   
  @@ -167,7 +170,7 @@
       In &lt;driver&gt;, invalid driver class name: "{0}"
   
   DATASOURCE_INVALID=\
  -    Unable to get connection, DataSource invalid
  +    Unable to get connection, DataSource invalid: "{0}"
    
   JDBC_PARAM_COUNT=\
       Invalid number of JDBC parameters specified.
  
  
  
  1.19      +3 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.java
  
  Index: FormatNumberSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/fmt/FormatNumberSupport.java,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- FormatNumberSupport.java	26 Apr 2002 00:29:47 -0000	1.18
  +++ FormatNumberSupport.java	30 Apr 2002 16:40:45 -0000	1.19
  @@ -209,7 +209,9 @@
   		try {
   		    setCurrency(formatter);
   		} catch (Exception e) {
  -		    throw new JspTagException(e.getMessage());
  +		    throw new JspException(
  +                        Resources.getMessage("FORMAT_NUMBER_CURRENCY_ERROR"),
  +			e);
   		}
   	    }
   	    configureFormatter(formatter);
  
  
  
  1.31      +2 -1      jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.java
  
  Index: QueryTagSupport.java
  ===================================================================
  RCS file: /home/cvs/jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql/QueryTagSupport.java,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- QueryTagSupport.java	29 Apr 2002 16:35:04 -0000	1.30
  +++ QueryTagSupport.java	30 Apr 2002 16:40:45 -0000	1.31
  @@ -306,7 +306,8 @@
   	        conn = dataSource.getConnection();
               } catch (Exception ex) {
                   throw new JspException(
  -                    Resources.getMessage("DATASOURCE_INVALID"));
  +                    Resources.getMessage("DATASOURCE_INVALID", 
  +                                         ex.getMessage()));
               }
   	}
   
  
  
  

--
To unsubscribe, e-mail:   <mailto:taglibs-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:taglibs-dev-help@jakarta.apache.org>


Mime
View raw message