下面给出了我的目录树
WebContent(Folder)
|
|_____home.jsp(Page)
|_____User(Folder)
|
|_____________deposit.jsp(Page)下面是我的deposit.jsp页面deposit.jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
user deposit
<a href="~/home.jsp">home</a>
</body>
</html>但是它不能去SendMail.jsp page.So,我怎么能从deposit.jsp链接到home.jsp呢?
发布于 2015-03-18 04:42:19
您可以更改deposit.jsp页面,因为follows.It将正常运行。
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
user deposit
<a href="${pageContext.request.contextPath}/home.jsp">home</a>
</body>
</html>https://stackoverflow.com/questions/29114177
复制相似问题