dcsimg

Can I use the PageContext.forward() or RequestDispatcher.forward() method to forward to a specific anchor (something like "mypage.html#intro")?

Alex Chaffee

No, you can't. It doesn't make sense, since the server has to generate the entire page, and can't tell the browser to jump to a specific anchor inside the page. Send a redirect instead, using Response.sendRedirect().