velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Will Glass-Husain" <wgl...@forio.com>
Subject Re: redirect Velocity
Date Fri, 09 Jan 2004 16:27:03 GMT
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" 
       




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message