You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by "Weaver, Scott" <Sw...@rippe.com> on 2001/12/19 23:16:30 UTC

RE: Issues with truncation of $link (TemplateLink) within Velocit y

Using $xuserAction.URI, works like a charm.

Thanks to all for the suggestions,
Scott

-----Original Message-----
From: Nathan Bubna [mailto:nathan@esha.com]
Sent: Wednesday, December 19, 2001 4:00 PM
To: Turbine Users List
Subject: Re: Issues with truncation of $link (TemplateLink) within
Velocity


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>

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