velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "White, Tim" <Tim.Wh...@qwest.com>
Subject Server-side redirect from VelocityTools?
Date Tue, 24 Jun 2008 22:13:32 GMT
Hi -
 
 I'm pretty sure that since the response is already set by the time that
a .vm template is running via VelocityViewServlet, that you can't do a
server-side redirect at that point.
 
 Is that true, or is there a way to forward to a different page directly
from logic in a .vm w/o JavaScript?
 
 For example:
 
   #if ($myVar == null)
        #redirect to some other page
   #end
 
Thanks,
 
Tim


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message