<%@ page language="java" pageEncoding="UTF-8"%><%String path = request.getContextPath();%><html> <head> <title></title> <meta http-equiv="refresh" content="0;url=<%=path%>/action.do"> </head><body></body></html>或者用JS跳转:<%@ page language="java" pageEncoding="UTF-8"%><%String path = request.getContextPath();%><html><head><title></title></head><body><script>document.location = '<%=path%>/action.do';</script></body></html>
转载于:https://www.cnblogs.com/owenma/p/3483174.html
相关资源:JAVA上百实例源码以及开源项目