• 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?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!