Hi,
I am trying to forward a httpservletrequest to a servlet from a controller servlet. When i call the method with web.servlets.loginServlet as input parameter, this method throws IllegalArgumentException saying that the input parameter does not contain '/'. Please help.
You can have request dispatcher object in two ways.
request.getRequestDispatcher("abc"); // #1
or
servletContext.getRequestDispatcher("/abc"); // #2
difference is when you use #1 server will look for the resource abc from current directory. In case of #2 it will start looking from context root so you need to put a '/' before your resource path. In case of #1 you may get in serious troubles sometimes you may need to put whole path like (http://localhost:8080:.........).