Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 66593 invoked from network); 3 Oct 2000 20:22:22 -0000 Received: from unknown (HELO smoolji.tfmx.com) (12.15.20.65) by locus.apache.org with SMTP; 3 Oct 2000 20:22:22 -0000 Received: from localhost (shahed@localhost) by smoolji.tfmx.com (8.9.3/8.9.3) with ESMTP id PAA01332 for ; Tue, 3 Oct 2000 15:19:07 -0500 X-Authentication-Warning: smoolji.tfmx.com: shahed owned process doing -bs Date: Tue, 3 Oct 2000 15:19:07 -0500 (CDT) From: shahed X-Sender: shahed@smoolji.tfmx.com To: tomcat-dev@jakarta.apache.org Subject: IllegalStateException in JSP Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I have a jsp page like <% Init Code to create myObj etc etc etc etc %> <% while(rs.next()) { String s = myObj.encodeString(rs.getString("stringToBeEncoded")); %> <%=s%> <% } %> If I have a small number of records, everything works fine. However if I return a say a 100 records, I get a java.lang.illegalStateException, which is due to the call to my method encodeString. All that the method does is replace blank spaces in a string with "%20". Any idea whats happenning. Thanks Shahed