morgand     01/04/20 09:17:45

  Modified:    jdbc/src/org/apache/taglibs/jdbc/resultset
                        BaseGetterTag.java
  Log:
  made column name comparisons case-insensitive
  
  Revision  Changes    Path
  1.4       +12 -12    
jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/resultset/BaseGetterTag.java
  
  Index: BaseGetterTag.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-taglibs/jdbc/src/org/apache/taglibs/jdbc/resultset/BaseGetterTag.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- BaseGetterTag.java        2001/02/09 01:09:08     1.3
  +++ BaseGetterTag.java        2001/04/20 16:17:44     1.4
  @@ -68,7 +68,7 @@
   
   /**
    * Base class for all the getter tags in the resultset package.
  - * 
  + *
    * @author Morgan Delagrange
    * @author Marius Scurtescu
    */
  @@ -92,7 +92,7 @@
   
     /**
      * Sets the column number of the result set.
  -   * 
  +   *
      * @param position column index
      */
     public void setPosition(int position) {
  @@ -139,7 +139,7 @@
   
     /**
      * Name of the attribute.
  -   * 
  +   *
      * @param attributeName
      *               attribute name
      */
  @@ -149,7 +149,7 @@
   
     /**
      * Scope of the attribute.
  -   * 
  +   *
      * @param scope  scope (page | request | session | application)
      */
     public void setScope(String scope) {
  @@ -158,7 +158,7 @@
   
     /**
      * Set an attribute to the specified scope.
  -   * 
  +   *
      * @param name   name of the attribute
      * @param object the attribute
      * @param scope  attribute scope (page | request | session | application)
  @@ -177,7 +177,7 @@
   
     /**
      * Get the ResultSet object from the enclosing resultset tag
  -   * 
  +   *
      * @return ResultSet of the resultset tag
      */
     protected ResultSet getResultSet() throws JspTagException {
  @@ -189,7 +189,7 @@
   
     /**
      * Get the MetaData object for this result set
  -   * 
  +   *
      * @return Meta data object
      * @exception JspTagException
      */
  @@ -209,13 +209,13 @@
   
     /**
      * Get the parent result set tag
  -   * 
  +   *
      * @return ResultSetTag
      * @exception JspTagException
      */
     protected ResultSetTag getResultSetTag() throws JspTagException{
       try {
  -      ResultSetTag rsetTag = 
  +      ResultSetTag rsetTag =
         (ResultSetTag) findAncestorWithClass(this, 
Class.forName("org.apache.taglibs.jdbc.resultset.ResultSetTag"));
         return rsetTag;
       } catch (ClassNotFoundException e) {
  @@ -234,7 +234,7 @@
         int cntColumn = meta.getColumnCount ();
   
         for (int i = 1; i <= cntColumn; i++) {
  -        if (strName.equals (meta.getColumnName (i))) {
  +        if (strName.equalsIgnoreCase (meta.getColumnName (i))) {
             return i;
           }
         }
  @@ -248,9 +248,9 @@
   
   
     /**
  -   * Create a Locale for the formatting of dates, times, 
  +   * Create a Locale for the formatting of dates, times,
      * and numbers.
  -   * 
  +   *
      * @param strLocale
      * @return the indicated Locale
      */
  
  
  

Reply via email to