2 Replies Latest reply on Mar 8, 2006 12:55 PM by xiaobo chen

    Question about

    xiaobo chen Newbie

      Hi, all

      I am very new in portal and doing some researching on this. When I study the "HelloWorldPortlet", I am looking into the java file for the portlet: HelloWorldPortlet.java. In this file, it has such method:

      protected void doView(RenderRequest rRequest, RenderResponse rResponse) throws PortletException, IOException, UnavailableException

      {

      rResponse.setContentType("text/html");

      javax.portlet.PortletRequestDispatcher pRD = this.getPortletContext().getRequestDispatcher(JSP_PATH + "/view.jsp");

      pRD.include(rRequest, rResponse);

      }

      I checked all the XML files in "helloworldportlet.war" but couldn't figure it out where the "portlet context" is defined. I am used to the web application structure and recalled that in the "/WEB-INF/web.xml", there is a <context-root> element to indicate the context root of a web application. So what's the counterpart for portlet and where to find it?

      Thanks.

      Chen