Re: Links to relative URL's from a JSP

2006-07-25 Thread Gustavo Carvalho
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

Re: Links to relative URL's from a JSP

2006-07-24 Thread David Smith
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

Re: Links to relative URL's from a JSP

2006-07-24 Thread Mike Molina
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

Re: Links to relative URL's from a JSP

2006-07-24 Thread Michael Jouravlev
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

RE: Links to relative URL's from a JSP

2006-07-24 Thread Propes, Barry L
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

Re: Links to relative URL's from a JSP

2006-07-24 Thread Christopher Schultz
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

Re: Links to relative URL's from a JSP

2006-07-24 Thread 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 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