短学期实验

<%@ 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>
<base href="<%=basePath%>">

<title>My JSP 'users2.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>
${users2 },欢迎!
</body>

</html><script type="text/javascript">
function checkpwd(){
var p1=document.form1.pwd1.value;
var p2=document.form1.pwd2.value;
if(p1==""){
alert("请输入密码!");
document.form1.pwd1.focus();
return false;
}

if(p1!=p2){
document.getElementById("msg").innerHTML="两次输入密码不一致,请重新输入";
return false;
}else{
}
}
</script>

posted @ 2017-07-05 10:54  bossm  阅读(127)  评论(0)    收藏  举报