0 Replies Latest reply on Oct 24, 2001 5:08 PM by Rocco Papaleo

    Bug in forward implementation?

    Rocco Papaleo Newbie

      Jboss 2.2

      This piece of code dosn't work in Jboss (illegalArgument exception: short read) but do work in websphere.

      Any suggestion?

      TIA


      RequestDispatcher disp;
      try {
      request.setAttribute("hashMap", hm);
      log.debug("setAttribute");

      disp = request.getRequestDispatcher(url);
      log.debug("dispatcher:" + disp.toString());
      log("before forward");

      int c_length = request.getContentLength();
      log.debug("content lenght:" + c_length);


      -----> disp.forward(request, response);



      log.debug("after forward");
      return;

      } catch (Exception e) {
      log.debug("ERROR forward: " + e);
      }