Look here:
getServletContext().getNamedRequestDispatcher("servletName") .forward(request, response);
However, I would suggest that there are better options. For example, move the code needed for the helper class / utility and call it.
As I think about it, you may need something else: call the servlet separately. For this you need:
InputStream is = new URL(urlOfTheServlet).openStream(); IOUtils.copy(is, response.getOutputStream());
(this uses apache commons-io to copy the input stream to the output stream of the current request)
source share