I'm working with servlets in a project. I have 5 servlets and I need the comunication between them. I am communicate them with the context and for initialize the servlets I 'm doing with the response.sendredirect(path).
The trouble that I have its that I need to redirect the servlet to a jsp. I tried with getServletContext().getRequestDispatcher("/SG_ConfigServCentral.jsp").forward(request, response); But I get an exception (java.lang.IllegalStateException: WEB2645: Cannot forward after response has been committed) and I tried with include instead of forward but didn't work too.
Can anyone help me please?
Thanks a lot