You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by "Speed Commerce, Inc." <br...@speedcommerce.com> on 2009/12/18 08:20:37 UTC

Previous URL

Is there a way to determine the previous url (the referrer) in Velocity?
-- 
View this message in context: http://old.nabble.com/Previous-URL-tp26840017p26840017.html
Sent from the Velocity - User mailing list archive at Nabble.com.


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


Re: Previous URL

Posted by Antonio Petrelli <an...@gmail.com>.
2009/12/18 Speed Commerce, Inc. <br...@speedcommerce.com>:
>
> Is there a way to determine the previous url (the referrer) in Velocity?

You can make a request-scoped tool that has a setRequest method:
public void setRequest(HttpServletRequest request)
and then you can determine the referrer.

Ciao
Antonio

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