index.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>首页</title>
</head>
<body>
您现在位置为index.jsp!
<jsp:forward page="login.jsp" ></jsp:forward>
</body>
</html>
login.jsp
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>用户登录</title>
<style type="text/css">
li{list-style: none;}
</style>
</head>
<body>
<form action="">
<div>
<ul>
<li><h3>用户登录</h3></li>
</ul>
<ul>
<li>用户名:<input type="text" name="username"></li>
</ul>
<ul>
<li>密 码:<input type="password" name="password"></li>
</ul>
<ul>
<li><input type="button" value="登 录"></li>
</ul>
</div>
</form>
</body>
</html>
运行效果 http://115.29.139.162:8080/WebContent/005/