<script>setTimeout("window.location.href ='${forwardUrl}';", 1000*${forwardSeconds});</script>
或者
out.print("<script>setTimeout("window.location.href ='../index.jsp';", 3000);</script>");