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?




View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949760#3949760

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949760


_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to