Hello,
The request.getRequestDispatcher("String url");
Here the url is relative to the particular request i.e the path is relative to the current resource.
Whereas, when we say,
getServletContext().getRequestDispatcher("String url"),
the url is relative path to the web-context.
So this url starts with a "/". in case of text().getRequestDispatcher("String url").
Thanks,
Yugant Shah.