You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-dev@jakarta.apache.org by ho...@apache.org on 2002/04/09 00:16:01 UTC

cvs commit: jakarta-taglibs/standard/src/org/apache/taglibs/standard/tag/common/sql QueryTagSupport.java

horwat      02/04/08 15:16:01

  Modified:    standard/src/org/apache/taglibs/standard/tag/common/sql
                        QueryTagSupport.java
  Log:
  Properly retrieve the maxRows context configuration parameter.
  
  Bugzilla #7420
  
  Revision  Changes    Path
  1.14      +6 -7      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.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- QueryTagSupport.java	8 Apr 2002 21:24:16 -0000	1.13
  +++ QueryTagSupport.java	8 Apr 2002 22:16:01 -0000	1.14
  @@ -117,13 +117,6 @@
       private void init() {
           scope = PageContext.PAGE_SCOPE;
           startRow = 0;
  -
  -        try {
  -            maxRows = Integer.parseInt(
  -                pageContext.getServletContext().getInitParameter(MAX_ROWS));
  -        } catch (Exception ex) {
  -            maxRows = -1;
  -        }
       }
   
   
  @@ -181,6 +174,12 @@
        * getting the <code>Connection</code>
        */
       public int doStartTag() throws JspException {
  +        try {
  +            maxRows = Integer.parseInt(
  +                pageContext.getServletContext().getInitParameter(MAX_ROWS));
  +        } catch (Exception ex) {
  +            maxRows = -1;
  +        }
   
           setDataSource();
   	try {
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>