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 68846 invoked from network); 21 Dec 2000 10:34:15 -0000 Received: from f207.pav1.hotmail.com (HELO hotmail.com) (64.4.31.207) by locus.apache.org with SMTP; 21 Dec 2000 10:34:08 -0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 21 Dec 2000 02:24:56 -0800 Received: from 203.198.23.26 by pv1fd.pav1.hotmail.msn.com with HTTP; Thu, 21 Dec 2000 10:24:55 GMT X-Originating-IP: [203.198.23.26] From: "Joseph Wong" To: tomcat-user@jakarta.apache.org Subject: Servlet and JSP mapping in Tomcat + Apache Date: Thu, 21 Dec 2000 18:24:55 +0800 Mime-Version: 1.0 Content-Type: text/plain; charset=big5; format=flowed Message-ID: X-OriginalArrivalTime: 21 Dec 2000 10:24:56.0133 (UTC) FILETIME=[43825750:01C06B38] X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 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.