0 Replies Latest reply on Jun 7, 2006 11:23 PM by winglfw

    Where should I place my jsp?

    winglfw

      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?