Hi.
I had a method
protected void dispatch( RenderRequest request,
RenderResponse response,
String path )
throws PortletException, IOException
{
System.out.println("Start dispatch " + path);
PortletContext ctx = getPortletContext();
PortletRequestDispatcher dispatcher = ctx.getRequestDispatcher(path);
dispatcher.include(request, response);
}
public void render(RenderRequest request, RenderResponse response)
throws PortletException, IOException
{
response.setContentType("text/html");
PrintWriter writer = response.getWriter();
writer.print("Render \n");
String _view = "/test.jsp";
dispatch(request, response, _view);
writer.close();
}
And i create a jsp under the src folder created by Eciplse and same level with myPorlet.java.
However, the jsp never dispatched. Could anyono tell me where should i place my jsp?