Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Doing sendRedirect using RenderResponse

 
Pavan Kashyap
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a requirement where in when a request comes to the portal page, i,e the doView() method is invoked, on some condition, i need to do a sendRedirect. But doView takes RenderRequest and RenderResponse where RenderResponse does not have sendRedirect method.

Please let me know how i can do this.
 
Jeff Handa
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Paveen,

To use the sendRedirect method you'll need to be in the action phase of the portlet lifecycle. Can you use an actionURL and do a sendRedirect before the render phase calls doView?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic