----- Original Message -----
> Turbine 2.2b1-HEAD-20011219
>
> Noticed something that doesn't seem quite right. I have code like this in
> my template:
>
> #set($xuseAction = $link.setPage('Login.vm').setAction('AgoraSecurity'))
>
> <p>1st: $xuseAction</p>
> <p>2nd: $xuseAction</p>
>
> What is displayed in the rendered webpage:
>
> 1st:
> http://localhost:8080/agora/agora/template/Login.vm/action/AgoraSecurity
>
> 2nd: http://localhost:8080/agora/agora
>
> Is it just me, or does this seem wrong? Why is it that the second time I
> reference $xuseAction in the template, all of the path info has been
> stripped?
Yep, it is wrong because TemplateLink breaks the toString() contract by
altering the value of the object. I as really annoyed when I found this,
but
I think it will be pretty difficult to fix it now short of implementing a
completely new tool and migrating across to it manually.
Cheers,
Scott
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>