View | Details | Raw Unified | Return to bug 7934
Collapse All | Expand All

(-)QueryTagSupport.java (-5 / +8 lines)
Lines 117-122 Link Here
117
    private void init() {
117
    private void init() {
118
        scope = PageContext.PAGE_SCOPE;
118
        scope = PageContext.PAGE_SCOPE;
119
        startRow = 0;
119
        startRow = 0;
120
        maxRows = -999;
120
    }
121
    }
121
122
122
123
Lines 174-184 Link Here
174
     * getting the <code>Connection</code>
175
     * getting the <code>Connection</code>
175
     */
176
     */
176
    public int doStartTag() throws JspException {
177
    public int doStartTag() throws JspException {
177
        try {
178
        if (maxRows == -999) {	
178
            maxRows = Integer.parseInt(
179
            try {
179
                pageContext.getServletContext().getInitParameter(MAX_ROWS));
180
                maxRows = Integer.parseInt(
180
        } catch (Exception ex) {
181
                    pageContext.getServletContext().getInitParameter(MAX_ROWS));
181
            maxRows = -1;
182
            } catch (Exception ex) {
183
                maxRows = -1;
184
            }
182
        }
185
        }
183
186
184
        setDataSource();
187
        setDataSource();

Return to bug 7934