I have a portlet where the doView
method calls the display.jsp
page with the following instruction :
getPortletContext().getRequestDispatcher("/views/display.jsp").dispatcher.include(request, response);
In the display.jsp
, I want to do a redirection to an external website :
<%
response.sendRedirect("http://www.google.fr");
%>
Why is it not working at all ?
(I put a <div>foobar<div>
in the JSP to see if that works and it does)
Is there another solution to make a redirection to an external URL ?
(The idea is to "stay" in the portlet/portal where the user can see the "targetted" website)
Regards.