tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Jouravlev" <jmi...@gmail.com>
Subject Re: Links to relative URL's from a JSP
Date Mon, 24 Jul 2006 18:07:32 GMT
On 7/24/06, David Smith <dns4@cornell.edu> 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 where they are although internal
> forwarding can make the request URL different from the actual location
> of the JSP.

Right. Mike, check this link:
http://wiki.apache.org/struts/StrutsTaglibHtmlBase Its wording could
be better, but hopefully you will get the idea. Basically, just use
<html:base/> tag. Without parameter it will "root" to the directory
where JSP is, or you can use a parameter and to "root" anywhere you
like.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message