On 9/29/01 5:23 PM, "Dan Bachelder" <[EMAIL PROTECTED]> wrote:
>>> It looks good so far... some slight issues perhaps... in my Index.vm
>>>
>>> $ui.image("yo")
>>>
>>> renders to
>>>
>>>
> http://127.0.0.1:80C:\dev\tdk\webapps\law//resources/ui/skins/default/images
> /yo
>>
>> Oops, that's my fault I'll fix that I used the application root instead of
>> the context path there.
>
> It looks like contextpath is being used now...
What do you mean being used now? It has always been used.
> but what is needed is
> scriptname...
No the script name is not what's needed.
> unless I am just plain using this wrong... where can I get
> that from in UIManager? it is not on TurbineServlet in CVS... Are people
> using $ui.image?
if id = logo.gif in your skin.props file than
$image.id
Should render to:
http://host:port/<contextpath>/resources/ui/skins/default/images/logo.gif
I think the getContextPath() is pulling up the getScriptName(). I mentioned
this the last time you asked and I said I would fix it but I forgot. I'll
take a look at it now.
> public String image(String imageId)
> {
> StringBuffer sb = new StringBuffer();
>
> sb.append(TurbineServlet.getServerScheme()).
> append("://").
> append(TurbineServlet.getServerName()).
> append(":").
> append(TurbineServlet.getServerPort()).
> append(TurbineServlet.getContextPath()).
> append("/").
> append(resourcesDirectory).
> append(SKINS_DIRECTORY).
> append("/").
> append(getSkin()).
> append(IMAGES_DIRECTORY).
> append("/").
> append(imageId);
>
> return sb.toString();
> }
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]