forked from hzuapps/java-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
119 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%> | ||
<html> | ||
<!-- 新 Bootstrap 核心 CSS 文件 --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"> | ||
<!-- 可选的Bootstrap主题文件(一般不用引入) --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css"> | ||
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> | ||
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> | ||
<!-- 最新的 Bootstrap 核心 JavaScript 文件 --> | ||
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | ||
<style type="text/css"> | ||
body{color:#FF7B0B;font-size:18px;} | ||
.title{text-align: center;font-size:50px;} | ||
.login{text-align: center;} | ||
#id,#name,#sex,#age,#weight,#hight{width:250px; margin:0 auto;} | ||
.btn{width: 125px;} | ||
</style> | ||
<head> | ||
<title>Add Page</title> | ||
</head> | ||
|
||
<body> | ||
<h1 class="title"><br/>New Information</h1> | ||
<div class="container" > | ||
<form action="123" method="post" class="login"><br> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="id" name="Username" placeholder="please enter the new id"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="name" name="UserPwd" placeholder="please enter the new name"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="sex" name="UserPwd" placeholder="please enter the new sex"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="age" name="UserPwd" placeholder="please enter the new age"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="weight" name="UserPwd" placeholder="please enter the new weight"> | ||
</div> | ||
<div class="form-group"> | ||
<input type="text" class="form-control" id="hight" name="UserPwd" placeholder="please enter the new hight"> | ||
</div> | ||
<input type="submit" value="submit" class="btn btn-primary"> | ||
<input type="reset" value="reset" class="btn btn-primary"> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> | ||
<% | ||
String path = request.getContextPath(); | ||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
%> | ||
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<html> | ||
<!-- 新 Bootstrap 核心 CSS 文件 --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css"> | ||
<!-- 可选的Bootstrap主题文件(一般不用引入) --> | ||
<link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap-theme.min.css"> | ||
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 --> | ||
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script> | ||
<!-- 最新的 Bootstrap 核心 JavaScript 文件 --> | ||
<script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> | ||
<style type="text/css"> | ||
body{color:#FF7B0B;font-size:18px;} | ||
.title{text-align: center;font-size:50px;} | ||
.login{text-align: center;} | ||
#InputName,#InputPassword{width:250px; margin:0 auto;} | ||
.checkbox{margin-left: -130px;} | ||
.btn{width: 253px;} | ||
</style> | ||
<head> | ||
<title>Login Page</title> | ||
</head> | ||
<body> | ||
<h1 class="title"><br/>Login</h1><br/> | ||
<div class="container" > | ||
<form role="form" class="login" action="123" method="get"> | ||
<div class="form-group"> | ||
<label for="InputName">Name</label> | ||
<input type="name" class="form-control" id="InputName" name="Username" placeholder="please enter your name"> | ||
</div> | ||
<div class="form-group"> | ||
<label for="InputPassword">Password</label> | ||
<input type="password" class="form-control" id="InputPassword" name="UserPwd" placeholder="please enter your password"> | ||
</div> | ||
<input type="submit" class="btn btn-primary" value="Submit"/> | ||
</form> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%> | ||
<% | ||
String path = request.getContextPath(); | ||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; | ||
%> | ||
|
||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> | ||
<html> | ||
<head> | ||
<base href="<%=basePath%>"> | ||
|
||
<title>My JSP 'info.jsp' starting page</title> | ||
|
||
<meta http-equiv="pragma" content="no-cache"> | ||
<meta http-equiv="cache-control" content="no-cache"> | ||
<meta http-equiv="expires" content="0"> | ||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> | ||
<meta http-equiv="description" content="This is my page"> | ||
<!-- | ||
<link rel="stylesheet" type="text/css" href="styles.css"> | ||
--> | ||
|
||
</head> | ||
|
||
<body> | ||
<%=request.getAttribute("outputMessage")%> | ||
</body> | ||
</html> |