This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have created a folder under WEB-INF/jsp and placed the index.jsp. Iam redirecting this jsp page from servlet using res.sendRedirect("/jsp/index.jsp") , when i run this example the server is giving an error HTTP Status 404 - /jsp/index.jsp
That's because redirects involve direct access between the resource and the browser.
A redirect works by sending a 30x header and a location header to the browser. Once received, the browser makes a new request for resource. Because, in your case, the resource is not available for direct access to the web, a 404 error is thrown.
Using RequestDispatcher.forward on the other hand is something that takes place, entirely, on the server. You might want to look into that and see if it will suite your needs.