Swastik Dey wrote:You need to create a url mapping for /WEB-INF/test.jsp in web.xml file and access that url in request dispatcher.
No, a mapping of the JSP page is not necessary. It should work just like that. Line 6 needs to be removed, of course - calling the dispatcher twice won't do any good.
Which URL are you trying to access, and how is that mapped to the servlet? Post the excerpt from web.xml that shows both parts of the mapping.