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 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
2) JSP files, even though accessing image files in the same directory
must use the previous directory, e.g., img src=../imagename.jpg 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
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: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: Links to relative
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 right
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
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., img src=image.jpg
However, if catalogue.jsp is accessed by the servlet forwarding the
request and response
[EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
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 previous