velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles N. Harvey III" <charl...@alloy.com>
Subject Re: $link tool in jsp
Date Fri, 27 Aug 2004 14:09:13 GMT
Thats what I wound up doing.
But only for about 15 minutes.  Then I went ahead and changed every file
to a .vm.  Couldn't take it.  :)  Velocity or nothing!!


Charlie


Shinobu Kawai said the following on 8/26/2004 3:23 PM:

>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
>
>
>
>  
>


---------------------------------------------------------------------
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