You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Nathan Bubna <na...@esha.com> on 2001/12/19 21:53:38 UTC

Re: Issues with truncation of $link (TemplateLink) within Velocity

if you look at the source, you'll see that the execution of toString()
(implicitly called by velocity when rendering the object) clears the path &
query data values from $link.   if you want to preserve that data, use
#xuseAction.getURI()


----- Original Message -----
From: "Weaver, Scott" <Sw...@rippe.com>
To: <tu...@jakarta.apache.org>
Sent: Wednesday, December 19, 2001 12:55 PM
Subject: Issues with truncation of $link (TemplateLink) within Velocity


> 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?
>
>
>
> Scott
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Issues with truncation of $link (TemplateLink) within Velocity

Posted by Nathan Bubna <na...@esha.com>.
er... $xuseAction.getURI()
you get the idea...

----- Original Message -----
From: "Nathan Bubna" <na...@esha.com>
To: "Turbine Users List" <tu...@jakarta.apache.org>
Sent: Wednesday, December 19, 2001 12:53 PM
Subject: Re: Issues with truncation of $link (TemplateLink) within Velocity


> if you look at the source, you'll see that the execution of toString()
> (implicitly called by velocity when rendering the object) clears the path
&
> query data values from $link.   if you want to preserve that data, use
> #xuseAction.getURI()
>
>
> ----- Original Message -----
> From: "Weaver, Scott" <Sw...@rippe.com>
> To: <tu...@jakarta.apache.org>
> Sent: Wednesday, December 19, 2001 12:55 PM
> Subject: Issues with truncation of $link (TemplateLink) within Velocity
>
>
> > 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?
> >
> >
> >
> > Scott
> >
> > --
> > To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> > For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> >
> >
>
>
> --
> To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>