0 Replies Latest reply on Feb 19, 2003 11:40 AM by zaheerah

    RequestDispatcher() problem....

    zaheerah

      Hi All,
      I am trying to run the following code on JBOSS 3.0.4 with Jetty, but somehow the request object is not reaching the target JSP. The target Jsp is inside the same application but in a different directroy(i mean same war file)

      if(iUrl != null)
      {
      paramList = iUrl.getParams();

      for(int i=0; i<paramList.size(); i++)
      {
      rp = (RequestParameter)paramList.elementAt(i);
      request.setAttribute( rp.getName(),rp.getValue());
      Debug.print("ParamName = " + rp.getName() + " requestValue = " + request.getAttribute(rp.getName()));
      }
      request.getRequestDispatcher(iUrl.getURL()).include(request, response);
      }

      The print message above is retriving values after adding them to request object and is printing right values. But in the target JSP I am getting only null values...

      on the target side I am using

      request.getParameter("parameterName");

      but getting only null values in return ...

      Please help...
      Thanks and regards,

      Zaheer