0 Replies Latest reply on Mar 2, 2009 10:03 PM by ericmacau

    JSR-286 - Include a JSP that in JAR file

    ericmacau

      Hello,

      In Portlet-2.0, it can load resources from JAR, but is it possible to render a JSP that store in a JAR?


      For example, in the

      public doView(RenderRequest request, RenderResponse response) throws Exception {
      
       response.setContentType("text/html");
      
      
       String MY_VIEW_PAGE_JSP_IN_JAR = .....................................................; // this file is in a JAR or class path
      
       PortletContext context = getPortletContext();
       PortletRequestDispatcher requestDispatcher = context.getRequestDispatcher(MY_VIEW_PAGE_JSP_IN_JAR);
       requestDispatcher.include(request, response);
      
      
      }