The ActionResponse.sendRedirect always shows 404 Error
public class SatPortlet extends MVCPortlet {
public void addBook(ActionRequest request, ActionResponse response) throws IOException {
if(true)
{
response.sendRedirect("/html/satportlet/view2.jsp");
}
else
{
response.sendRedirect("/html/satportlet/error.jsp");
}
}
} I have this pages present inside the docroot where this view.jsp is present .
<init-param>
<name>view-jsp</name>
<value>/html/satportlet/view.jsp</value>
</init-param> Also present in tomcat webapps context path .
But every time it enters the MVCPortlet Action class and the condition is matched i displays this 404 .
Please sign in to flag this as inappropriate.