Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 97786 invoked from network); 1 Mar 2002 15:28:11 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 1 Mar 2002 15:28:11 -0000 Received: (qmail 1172 invoked by uid 97); 1 Mar 2002 15:27:44 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 1150 invoked by uid 97); 1 Mar 2002 15:27:43 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 1139 invoked from network); 1 Mar 2002 15:27:43 -0000 From: "Mark Lines-Davies" To: Subject: FW: jspInit and load-on-startup Date: Fri, 1 Mar 2002 15:21:02 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello I would like to have a JSP page loaded by Tomcat 3.3 when it starts up. I have added to the web.xml file and my JSP page looks like this: <%@ page import="java.io.*" contentType="text/xml" %> <%! public void Init(){ System.out.println("Hello World"); } %> <% System.out.println("Normal call"); out.println("Hi there"); %> I assumed that when Tomcat starts, I would see the "Hello World" message displayed in my Tomcat console window. Instead, I see a message saying "LoadOnStartupInterceptor: Initializing JSP with JspWrapper". If I then make a browser call to this JSP page I get Hello World Normal call and subsequent calls just give "Normal call". I guess I have misunderstood what is for....? regards Mark Lines-Davies ************************************************************************* The information contained in this message or any of its attachments may be privileged and confidential and intended for the exclusive use of the addressee. If you are not the addressee any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited ************************************************************************* -- To unsubscribe: For additional commands: Troubles with the list: