Skip to content

Commit

Permalink
Merge pull request #325 from Darkreunion/master
Browse files Browse the repository at this point in the history
#3 提交实验代码
  • Loading branch information
zengsn authored Oct 31, 2016
2 parents 75c85cb + 46f856a commit dfd0b15
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions labs/1414080902239/index.jsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<%@ 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>
<head>
<!-- 新 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>


<base href="<%=basePath%>">

<title>LOGIN IN</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">
<style type="text/css">
p{text=align:center;color:blue}
</style>


</head>

<body>
<%! int sum=0,x=1; %>
<% while(x<=10){
sum=+x;++x;}
%>


<center>
<p>XXXXX</p>
<form name="form1" action="LK" method="post">
用户名:<input type="text" name="name1">
<br> 密码:<input type="password" name="pass1">
<br>
<input type="checkbox" name="remember">记住密码<br>
<input type="submit" value="登入">
</form>
</center>
<p>1+到10的结果是:<%=sum %></p>



</body>
</html>

0 comments on commit dfd0b15

Please sign in to comment.