Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 26183 invoked from network); 30 Jan 2003 12:18:20 -0000 Received: from exchange.sun.com (192.18.33.10) by daedalus.apache.org with SMTP; 30 Jan 2003 12:18:20 -0000 Received: (qmail 10236 invoked by uid 97); 30 Jan 2003 12:19:45 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@nagoya.betaversion.org Received: (qmail 10229 invoked from network); 30 Jan 2003 12:19:44 -0000 Received: from daedalus.apache.org (HELO apache.org) (208.185.179.12) by nagoya.betaversion.org with SMTP; 30 Jan 2003 12:19:44 -0000 Received: (qmail 24729 invoked by uid 500); 30 Jan 2003 12:18:02 -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 24712 invoked from network); 30 Jan 2003 12:18:02 -0000 Received: from mailhost2.gravitynet.org (HELO winsoftsystems.com) (213.229.135.147) by daedalus.apache.org with SMTP; 30 Jan 2003 12:18:02 -0000 Received: from k712a [80.36.198.29] by winsoftsystems.com with ESMTP (SMTPD32-6.06) id A82A7060130; Thu, 30 Jan 2003 13:18:50 +0100 Message-ID: <00be01c2c85a$34b84aa0$67589b12@k712a> From: =?iso-8859-1?Q?Antonio_V=E1zquez?= To: "Tomcat Users List" References: <1043885846.13133.13.camel@rw-linux> Subject: Re: web.xml servlet and resources Date: Thu, 30 Jan 2003 13:22:01 +0100 Organization: WinSoft Systems MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Richard, Usually the servlet are in the WEB_INF directory, and this is forbidden for the users. If you put an image inside web-inf/servlet/images.. you will not be able to retry it. You cannot use the url .../web-inf/images/... Usually you create a image folder at the same level that WEB_INF folder, and you put your image like ... Remember that the images are retry by new request to the server by the navigator (http://mihost/images/mygif.gif) for each img html token. Antonio, ----- Original Message ----- From: "Richard Wallace" To: Sent: Thursday, January 30, 2003 1:17 AM Subject: web.xml servlet and resources > Hello all, > > This is a fairly simple problem but I haven't been able to find an > answer anywhere (I've been looking for the past day or two). I'm hoping > this is a common situation and is possible, but from what I've seen I > can't see how. > > What I want is for the resources (images, css files, etc.) to be in a > path relative to the servlet. So, if I have an images directory and the > servlet URL is http://www.domain.com/some-servlet, the images should be > accessible from this URL, http://www.domain.com/some-servlet/images. > So, I want to set the URL pattern for some-servlet to be /. If I do > that then every URL beginning with that will be grabbed by the servlet, > including http://www.domain.com/some-servlet/images/logo.gif (as an > example). > > Suggestions? Thanks. > -- > Richard Wallace > AIM, Inc. (www.a--i--m.com) > Information Systems Consultants > > "Providing New Technology, > the Old-Fashioned Way" > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org