這篇文章給大家分享的是有關(guān)使用JSP實現(xiàn)簡單的用戶登錄注冊頁面示的方法的內(nèi)容。小編覺得挺實用的,因此分享給大家做個參考。一起跟隨小編過來看看吧。

實驗要求:
將實驗2中的系統(tǒng)用戶登錄和注冊頁面改為JSP頁面,并部署自己的Web應(yīng)用于Tomcat服務(wù)器中
具體要求:
完成登錄JSP頁面設(shè)計和注冊頁面設(shè)計
在登錄頁面表單中使用request對象獲取用戶信息,建立新的JSP頁面完成登錄驗證(用戶名和密碼自己指定即可)。
驗證結(jié)果顯示(如登錄成功/用戶名密碼錯誤,可以使用JavaScript,也可以使用新的JSP頁面)。
在注冊頁面表單中使用request對象獲取用戶注冊信息(注冊項目由自己指定),在新的JSP頁面顯示用戶注冊信息,并提示注冊成功。
代碼
登錄頁面index.html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jsp作業(yè)</title>
<link href="css/bootstrap.min.css" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-default">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="./" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >jsp作業(yè)</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav navbar-right">
<li><a href="login.jsp" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >登錄</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="jumbotron">
<h2>Hello, world!</h2>
<p>這是一個jsp作業(yè)</p>
</div>
</div>
</body>
</html>
當(dāng)前題目:使用JSP實現(xiàn)簡單的用戶登錄注冊頁面示的方法-創(chuàng)新互聯(lián)
文章位置:http://www.yijiale78.com/article2/jggic.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供云服務(wù)器、移動網(wǎng)站建設(shè)、微信小程序、網(wǎng)站內(nèi)鏈、網(wǎng)站收錄、做網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容