velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shinobu Kawai <shin...@ieee.org>
Subject Re: $link tool in jsp
Date Thu, 26 Aug 2004 19:23:56 GMT

Hi Charlie,

> I use $link.setRelative('/images/myimage.gif') all the time.  So when
> my webapp changes from /myapp/ to www.myapp.com/ I don't have to go
> messing with all the links.
> 
> So, is there a way to do this in JSP really easily?  I thought there
> was and I am having a REALLY hard time finding it.  Silly JSPs.
Very easy.
    <%= request.getContextPath() %>/images/myimage.gif"

Best regards,
-- Shinobu Kawai

--
Shinobu Kawai <shinobu@ieee.org, shinobu@computer.org>



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message