Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Delivered-To: moderator for tomcat-dev@jakarta.apache.org Received: (qmail 52662 invoked from network); 15 Dec 2000 11:01:27 -0000 Received: from interprise.de (HELO iplanet.interprise.de) (195.143.115.18) by locus.apache.org with SMTP; 15 Dec 2000 11:01:27 -0000 Received: from gauss-interprise.com ([192.168.17.140]) by iplanet.interprise.de (Netscape Messaging Server 4.1) with ESMTP id G5LVXM00.A5D for ; Fri, 15 Dec 2000 12:00:58 +0100 Message-ID: <3A39F9F9.C0D78B7@gauss-interprise.com> Date: Fri, 15 Dec 2000 12:01:13 +0100 From: "Peter Huber" X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-dev@jakarta.apache.org Subject: String usage in JSP-compiled Servlets? Content-Type: multipart/mixed; boundary="------------D0FCD2869993571626F1DA8E" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. --------------D0FCD2869993571626F1DA8E Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi you all, I'm new to the list maybe this stuff has been discussed several times. If so I'm sorry to waist your time! My point: tomcat 3.2 compiles a JSP into a servlet which contains out.write() calls which have ""-strings as arguments. As far as I understand Java, each ""-string creates a new Object! Therefore each out.write() creates a new object and this is true for each call to _jspService of the same object. So many calls to one and the same page result in many more objects. So my proposal is to compile JSP ""-strings to something like: class xyz { static final String arr[] = { "uvw", "abc" ... }; _jspService(...) { ... out.write(arr[234]) ... } } Peter -- --------------D0FCD2869993571626F1DA8E Content-Type: text/x-vcard; charset=us-ascii; name="peter.huber.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Peter Huber Content-Disposition: attachment; filename="peter.huber.vcf" begin:vcard n:Huber;Peter tel;work:+49 (0) 89 66561-128 x-mozilla-html:FALSE org:Gauss Interprise Consulting AG;Consulting JCD adr:;;Witneystr. 1;Unterhaching;;82008;Germany version:2.1 email;internet:peter.huber@gi-consulting.de title:Consultant (Dipl.Inf.) fn:Peter Huber end:vcard --------------D0FCD2869993571626F1DA8E--