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().

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.



About | Sitemap | Contact