0 Replies Latest reply on Jun 1, 2005 8:39 AM by gourishetty ambica

    Invalid State Exception: can't forward after response has be

    gourishetty ambica Newbie

      hi

      in our application I am using the following code(it is in the Action Class):

      if(page.equals("car")) response.sendRedirect("userInfo.do");
      if(page.equals("flight")) response.sendRedirect("trip.do?action=checkAuth");
      if(page.equals("hotel")) response.sendRedirect("hotelBooking.jsp");
      if(page.equals("deal")) response.sendRedirect("dealBook.do");

      but it is giving Invalid State Exception: can't forward after response has been committed