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.
posted 7 years ago
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?