Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 67541 invoked from network); 16 Nov 2000 19:40:53 -0000 Received: from lukla.sun.com (192.18.98.31) by locus.apache.org with SMTP; 16 Nov 2000 19:40:53 -0000 Received: from centralmail1.Central.Sun.COM ([129.147.62.10]) by lukla.Sun.COM (8.9.3+Sun/8.9.3) with ESMTP id MAA03922; Thu, 16 Nov 2000 12:40:38 -0700 (MST) Received: from esun1as-mm. (esun1as-mm.Central.Sun.COM [129.147.34.144]) by centralmail1.Central.Sun.COM (8.9.3+Sun/8.9.3/ENSMAIL,v1.7) with SMTP id MAA22320; Thu, 16 Nov 2000 12:39:51 -0700 (MST) Received: from eng.sun.com by esun1as-mm. (SMI-8.6/SMI-SVR4) id MAA16662; Thu, 16 Nov 2000 12:51:44 -0700 Message-ID: <3A143855.27ADEE8A@eng.sun.com> Date: Thu, 16 Nov 2000 11:41:09 -0800 From: "Craig R. McClanahan" X-Mailer: Mozilla 4.75 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org CC: JTBldrCO@aol.com Subject: Re: Accessing Servlets In Packages References: <93.3042cc9.2745896f@aol.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N JTBldrCO@aol.com wrote: > [snip] > Now, take a class, SomePackageClass, declared to be in package testapackage > within its .java code file. Its compiled form is in the following file: > > /usr/local/jakarta-tomcat/webapps/myWebApp/WEB-INF/classes/testapackage/SomePa > > ckageClass.class > > I would like to (but CANNOT) access it with: > > http://www.mySiteName.com/myWebApp/servlet/testapackage/SomePackageClass > Why can't you use a servlet definition and mapping like this: My Servlet testpackage.SomePackageClass My Servlet /servlet/testpackage/SomePackageClass which would support your desired URL? > > John Thompson > Boulder, Colorado, USA > JTBldrCO@aol.com Craig McClanahan