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 16269 invoked from network); 21 Dec 2000 12:27:49 -0000 Received: from gfs1.gfs.com (HELO tom.gfs.com) (208.240.15.3) by locus.apache.org with SMTP; 21 Dec 2000 12:27:49 -0000 Received: from gfs2.grhq.gfs.com ([1.1.2.21]) by tom.gfs.com; Thu, 21 Dec 2000 07:32:54 +0000 (EST) Received: from jmillernt (jmillernt.grhq.gfs.com [1.1.17.253]) by gfs.com; Thu, 21 Dec 2000 07:25:45 -0500 Message-ID: <006b01c06b49$277e30e0$fd110101@GRHQ.GFS.COM> From: "Jeffrey Miller" To: References: Subject: Re: Servlet and JSP mapping in Tomcat + Apache Date: Thu, 21 Dec 2000 07:25:50 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N You'll have to setup mod_jk to let Tomcat and Apache communicate - there is a nice howto that will help you ----- Original Message ----- From: "Joseph Wong" To: Sent: Thursday, December 21, 2000 5:24 AM Subject: Servlet and JSP mapping in Tomcat + Apache > Hi, > > I want to use Apache + Tomcat to develop JSP and Servlet programs, where > Apache serves HTML pages and Tomcat serves JSP and Servlet. > > How to make mappings for JSP and Srvlet such that: > > 1) http://host-name/jsp/*.jsp --> go to jsp directory and run jsp > 2) http://host-name/servlet/servlet-name --> go to servlet directory and > run servlet. > ?????? > > And jsp and servlet should be in the same context so that jsp and servlet > programs can communicate. > ?????? > > I have tried to create a context "/jsp" and mapped to jsp directory, also > created "web-inf\classes" under jsp directory to hold servlet programs. In > that way, i can call servlet programs by "/jsp/servlet/servlet-name". > However I CANNOT call servlet programs by "/servlet/servlet-name" in > url....????? > > > Please help......... > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >