Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 89388 invoked from network); 27 Jun 2005 20:46:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jun 2005 20:46:20 -0000 Received: (qmail 80336 invoked by uid 500); 27 Jun 2005 20:46:03 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 80129 invoked by uid 500); 27 Jun 2005 20:46:02 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 80116 invoked by uid 99); 27 Jun 2005 20:46:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 13:46:01 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=RCVD_BY_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jbainbridge@gmail.com designates 64.233.162.193 as permitted sender) Received: from [64.233.162.193] (HELO zproxy.gmail.com) (64.233.162.193) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2005 13:46:01 -0700 Received: by zproxy.gmail.com with SMTP id n29so214187nzf for ; Mon, 27 Jun 2005 13:45:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=YQqyRnhLBbdKs88go9VHbeIhOwE+NMKa4dN06+DdWIxIJMREPeyg7M5fOhnet8m/WvdNVVvho+fWib3sr3s/C6zpg6kR24Po7YuwythQVB5KSrwrPF82MYHfoU99bS1EWHKvKZ+5FhRdx49BJ4CFC/zbJ0uExoY8HpIrbx/As7s= Received: by 10.36.158.10 with SMTP id g10mr4872455nze; Mon, 27 Jun 2005 13:45:57 -0700 (PDT) Received: by 10.36.65.14 with HTTP; Mon, 27 Jun 2005 13:45:53 -0700 (PDT) Message-ID: Date: Mon, 27 Jun 2005 15:45:53 -0500 From: Jason Bainbridge Reply-To: Jason Bainbridge To: Tomcat Users List Subject: Re: img tag's src not working for image files in a JSP in tomcat 5.5 In-Reply-To: <93871F2978047D479420EA7CFF9CF0F602D9A9D2@EXCHANGE.firstlogic.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <93871F2978047D479420EA7CFF9CF0F602D9A9D2@EXCHANGE.firstlogic.net> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Sounds like a browser caching issue or maybe some referrer checking getting in the way although I don't how that would be setup in Tomcat. Are you using SSL or have any other types of constriants in place? Regards, --=20 Jason Bainbridge http://kde.org - webmaster@kde.org Personal Site - http://jasonbainbridge.com On 6/27/05, Ryan Champlin wrote: > All, >=20 > I've read quite a few articles on this issue and tried all the solutions = given and none of them seem to be working. > I'm using Netbeans 4.1 with Tomcat 5.5. My application is using the MVC = patter so I have a controller that is using the request dispatcher to forwa= rd a request to a JSP page. >=20 > Basically I have an application at the context "/Company". >=20 > I have all my images in a folder called "img" and all my JSP's in a folde= r called "jsp". >=20 > I've tried using relative paths to the image directory and the images don= 't show up in the browser however if I look at the URL it seems right. > I right-clicked to get properties and copied the URL: >=20 > http://localhost:8085/Company/img/image.jpg >=20 > If I paste that into a browser I get a 404 error from Tomcat. However, i= f I take off the image name and do: >=20 > http://localhost:8085/Company/img >=20 > I get a listing of the image files. If I click on the link for the image= "image.jpg" it opens the file in the browser and I see the URL as: >=20 > http://localhost:8085/Company/img/image.jpg >=20 > which is exactly the same as what I had manually typed in. Doesn't make = any sense to me as to why it works one way and not the other. Possibly a p= ermissions issue? >=20 > Can anyone shed some light on why I can't get my image files to show up i= n my JSP pages? >=20 > Thanks, > Ryan >=20 >=20 > --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org