0 Replies Latest reply on Apr 6, 2007 1:59 AM by Ashwin Kamath

    httpservletrequest.getProtocol returns null when invoked usi

    Ashwin Kamath Newbie

      Hi,

      I am using a portletrequestdispatcher to include a servlet in the doView method. Within the servlet a NULL is returned if i try to get the protocol of the request using getProtocol. I expected to see HTTP/1.1.

      Below is the code snippet of how I include the servrlet

      -----
      rResponse.setContentType("text/html");
      PortletRequestDispatcher prd = getPortletContext().getRequestDispatcher("/TestServlet/test");
      prd.include(rRequest, rResponse);
      -------

      Any help on this subject will be of great help.

      Thanks,
      Ashwin.