I was trying out a small example, I have a page called index.html which is a framed page and to the left frame I have several links with the first link pointing to index.jsp which will display in the right frame. Now in the right frame, i.e., in the index.jsp, I have a submit button and when I click submit button, it will go to a servlet and in that servlet I'm redirecting it to another jsp which is in the same location as this index.jsp. But when I tried this, it gives me a 404 error
Since the page you're working with is in a frame, what you see in the URL line is not what the browser just requested for that one frame. Do a right-click on the 404 page, and let the browser tell you which URL it accessed for that particular frame.