You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Magnús Þór Torfason <ma...@handtolvur.is> on 2001/04/18 12:12:49 UTC

Silly DynamicURI question

I need to create duris that point to a <a name="myname"> tag.

What I am doing now, is:

return myDuri.toString() + "#myname";

I can't seem to find a better way to do this with the DynamicURI class, and
am wondering if there is one.

Magnus


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Silly DynamicURI question

Posted by John McNally <jm...@collab.net>.
That would be how to do it, though I think it might belong in the
template.  If velocity is having problems, a method could be added to
TemplateLink


Magnús Þór Torfason wrote:
> 
> I need to create duris that point to a <a name="myname"> tag.
> 
> What I am doing now, is:
> 
> return myDuri.toString() + "#myname";
> 
> I can't seem to find a better way to do this with the DynamicURI class, and
> am wondering if there is one.
> 
> Magnus
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: turbine-user-help@jakarta.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org


Re: Silly DynamicURI question

Posted by Jon Stevens <jo...@latchkey.com>.
on 4/18/01 3:12 AM, "Magnús Þór Torfason" <ma...@handtolvur.is> wrote:

> I need to create duris that point to a <a name="myname"> tag.
> 
> What I am doing now, is:
> 
> return myDuri.toString() + "#myname";
> 
> I can't seem to find a better way to do this with the DynamicURI class, and
> am wondering if there is one.
> 
> Magnus

You don't need to have the session id appended to a link like that because a
connection is not made back to the server when a link like that is
clicked...

So, you don't need to dynamicuri that at all...just do:

return "foo.vm#myname";

-jon


---------------------------------------------------------------------
To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org