response.sendRedirect("/AhWeb002/TestDire.jsp?#cc_bi");
------------------------------------
<% if (request.getParameter("id")!= null) {%> <script type="text/javascript"> window.location.href = "/AhWeb002/TestDire.jsp?#cc_bi"; </script> <%} %>
原文:http://www.cnblogs.com/AndyHoo/p/5152540.html