Skip to content

Commit

Permalink
hzuapps#4 hzuapps#78 提交实验代码
Browse files Browse the repository at this point in the history
  • Loading branch information
HCJ0HCJ committed Oct 30, 2016
1 parent fa6f3bf commit 974917f
Show file tree
Hide file tree
Showing 3 changed files with 119 additions and 0 deletions.
48 changes: 48 additions & 0 deletions jweb/web/1414080902138/add.jsp
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">&nbsp;&nbsp;&nbsp;
<input type="reset" value="reset" class="btn btn-primary">
</form>
</body>
</html>
43 changes: 43 additions & 0 deletions jweb/web/1414080902138/index.jsp
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>
28 changes: 28 additions & 0 deletions jweb/web/1414080902138/info.jsp
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>

0 comments on commit 974917f

Please sign in to comment.