using Eclipse for development.
Sincerely,
Mike M.
>From: David Smith
>Reply-To: "Tomcat Users List"
>To: Tomcat Users List
>Subject: Re: Links to relative URL's from a JSP
>Date: Mon, 24 Jul 2006 13:50:22 -0400
>
> > 2) JSP files, even though accessing image
ke M.
From: David Smith <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List"
To: Tomcat Users List
Subject: Re: Links to relative URL's from a JSP
Date: Mon, 24 Jul 2006 13:50:22 -0400
> 2) JSP files, even though accessing image files in the same
directory must use the previ
Mike,
> Whenever I access "catalogue.jsp" by entering in its absolute URL,
> everything works fine. I can still have my relative img links to the
> images contained in the same folder, e.g.,
>
> However, if "catalogue.jsp" is accessed by the servlet forwarding the
> request and response objects
Mike,
That's not the case for me. I did, however, choose to make an images directory
in the webapps folder, so that all my JSPs do indeed source back one directory,
like you noted, src="../images/image.gif" for example.
Try restarting Tomcat with the image in the JSP sourced like the HTMLs and
On 7/24/06, David Smith <[EMAIL PROTECTED]> wrote:
> My assumption is that JSP files are "rooted" in the WEB-INF directory
and so must use the previous directory notation back up a directory to
access the images contained the WebContent folder where everything else is.
Nope. They are "rooted"
o using "../" before the
image filename. If I access the JSP using an absolute URL, one of the
images will work, if I use dispatcher forwarding, 2 of them will work.
I am using Eclipse for development.
Sincerely,
Mike M.
From: David Smith <[EMAIL PROTECTED]>
Reply-To: "Tomca
> 2) JSP files, even though accessing image files in the same directory
must use the previous directory, e.g., even
though the images are contained in the same directory.
What does the URL in your browser look like when you are access the JSP
pages? The browser constructs the full path to th