I have the the following code to test, I was trying with servlet runner by starting the servletunit client. Everything was fine except dispatcher.include(req,resp).It is throwing some exception at dispatcher. I don't know whether dispatcher is working with servlet runner or not.
Any suggestions are welcome.
RequestDispatcher dispatcher1 =
getServletContext().getRequestDispatcher("/header.jsp");
RequestDispatcher dispatcher2 =
getServletContext().getRequestDispatcher("/newclickmenu/clickMainMenu.jsp");
BufferedHttpResponseWrapper bufferedHttpResponseWrapper = new BufferedHttpResponseWrapper(res);
dispatcher1.include(req, bufferedHttpResponseWrapper);
dispatcher2.include(req, bufferedHttpResponseWrapper);