在index.jsp 中使用: <%@ page contentType="text/html; charset=GBK"%><html> <head> <script type="text/javascript"> window.οnlοad=function() { top.location.href="<%=request.getContextPath()%>/account/login.action"; } </script> </head> <body> </body></html>