I want to know that the ServletContext's getRequestDispatcher() method will not take URL pattern of a servlet as a parameter?
Your question is not quite clear...however, if you're looking for a similar method which does not take a url-pattern as an argument....it is ServletContext.getNamedDispatcher(String ServletName) where ServletName is the name you've declared in the DD for the servlet
Its will try to locate any resource like [Application Path]/red
That's what it is supposed to do.... "/" means the context root(application)...By the way I ran the code with RequestDispatcher rd = getServletContext().getRequestDispatcher("/red"); and got no errors...it's workin' fine...check if you're goin' wrong somewhere