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 28156 invoked from network); 20 Feb 2000 01:08:22 -0000 Received: from unknown (HELO smthqwsm01.siebel.com) (216.217.80.201) by locus.apache.org with SMTP; 20 Feb 2000 01:08:22 -0000 Received: from 10.0.32.5 by smthqwsm01.siebel.com with ESMTP ( WorldSecure Server SMTP Relay(WSS) v4.3); Sat, 19 Feb 00 17:07:11 -0800 X-Server-Uuid: 345c517b-5fb4-11d3-a613-00508b3222df Received: by smthqexc02.siebel.com with Internet Mail Service ( 5.5.2650.21) id <1FY4CV26>; Sat, 19 Feb 2000 17:07:21 -0800 Message-ID: From: "Andy Nuss" To: "'tomcat-dev@jakarta.apache.org'" Subject: JSP: SingleThreadModel + page variables Date: Sat, 19 Feb 2000 17:07:54 -0800 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) X-WSS-ID: 14B1E1B543092-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit Hi, I've read about the variables which persist on a page: <%! int myvar; %> and I'm worried that the only way that a typical Web Server can compile this page successfully to a Servlet is by implementing the SingleThreadModel interface! I infer this because it claims somewhere on Sun's site that these variables are class variables. Obviously 2 threads using the same instance of the servlet, each responding to their own GET requests would be stomping on each others variables unless the SingleThreadModel is used. Am I correct? Is it a requirement that these variables be implemented as class variables? Can they be implemented as variables declared at the top of the scope of the doGet() method? By a smart Web Server? Thanks, Andy