Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 50915 invoked by uid 500); 4 Apr 2001 22:24:20 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 50880 invoked from network); 4 Apr 2001 22:24:19 -0000 Received: from pcow035o.blueyonder.co.uk (HELO blueyonder.co.uk) (195.188.53.121) by h31.sny.collab.net with SMTP; 4 Apr 2001 22:24:19 -0000 Received: from thrug.jameswhitman.org ([62.31.155.216]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 4 Apr 2001 22:26:11 +0000 Message-Id: <5.0.2.1.0.20010404230840.0315e3e8@pop32.ukshells.co.uk> X-Sender: jwhitman@pop32.ukshells.co.uk X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Wed, 04 Apr 2001 23:24:22 +0100 To: tomcat-user@jakarta.apache.org From: jim Subject: The include directive within a .jsp page referring to a servlet In-Reply-To: <361024C34A6DD2118689006097AE2B4D0102CAC7@css4.cs> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi I have a request for information. Can list members tell me if it is possible to include a servlet into a jsp page using the Tomcat engine. I am having problems with a "bad file argument to include" error message. I have tried various ways of writing the url within the file="..." part of the directive, but without success. The servlet is called Dbase and lives in the classes directory of the context "jbuilder" (and works with the /host/jbuilder/Dbase url straight from the browser). My .jsp file (called jsp.jsp) lives in the examples context under /examples/jsp/jsp.jsp and works fine with simple text or html etc. files within that directory but not when the include is file="/jbuilder/Dbase". I know that this is not a relative url, but it's not clear how you would use a relative url when the servlet is mapped through the web.xml file for its normal operation. I'm at a loss to know whether or how to make this work. Am I barking up the wrong tree. Thanks, Jim