码迷,mamicode.com
首页 > Web开发 > 详细

用jsp:forward指向登录页

时间:2015-04-08 12:52:10      阅读:99      评论:0      收藏:0      [点我收藏+]

标签:

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中转页</title>
</head>
<body>
    <jsp:forward page="loginOfjspforward.jsp" />
</body>
</html>

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
</head>
<body>
    <form name="form1" method="post" action="">
        用户名:<input type="text" name="name" id="name" style="width:120px"><br>&nbsp;&nbsp;&nbsp;&nbsp;码:<input type="password" name="password" id="password"
            style="width:120px"><br> <br> <input type="submit"
            name="submit" value="提交">
    </form>
</body>
</html>

 

用jsp:forward指向登录页

标签:

原文地址:http://www.cnblogs.com/fatoland/p/4401888.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!