Using $xuserAction.URI, works like a charm. Thanks to all for the suggestions, Scott
-----Original Message----- From: Nathan Bubna [mailto:[EMAIL PROTECTED]] 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" <[EMAIL PROTECTED]> To: "Turbine Users List" <[EMAIL PROTECTED]> 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" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > 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: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
