You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Will Glass-Husain <wg...@forio.com> on 2004/01/09 17:27:03 UTC

Re: redirect Velocity

Are you using the VelocityServlet?

The handle method requires you to return a template, or null if you want to write the response directly to the output.  So do the following:

response.sendRedirect("newurl.htm");
return null;
  ----- Original Message ----- 
  From: Giuliano 
  To: velocity-user@jakarta.apache.org 
  Sent: Friday, January 09, 2004 9:13 AM
  Subject: redirect Velocity


  I need to solve a doubt
  thank you!

  i would like to know , what i need to do to redirect a page using Velocity.
  ex:
  if i get a invalid session i want to redirect to another file.vm
  how can i do this???

  thank you!!
          
        Giuliano Yoshinaga Bisse 
        Unopar - Coordenadoria de Informática 
        Programador de Sistemas 
        Visite nosso Portal: www.unopar.br 
       (43) 3371-7755 
        "Tudo posso Naquele que me fortalece"