window.location.href="listU.action";
HTML code
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>operation</title>
<script type="text/javascript">
window.location.href="listU.action";
</script>
</head>
<body>
<h1><font color="red">客户管理系统</font></h1>
</body>
</html>
window.location.href="listU.action";
这句对不,跳不过去?
访问他 http://localhost:8080/Sh --->
跳到他 http://localhost:8080/Sh/listU.action
------解决方案--------------------
加路径:
[code=Java] window.location.href="<%=request.getContextPath()/%>/listU.action";
[code]
------解决方案--------------------