<%@ page language=
"java"
import=
"java.util.*"
pageEncoding=
"UTF-8"
%>
<!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
>
<html>
<head>
<title>用户登录</title>
<script type=
"text/javascript"
src=
"../js/jquery-easyui-1.3.5/jquery.min.js"
></script>
<script type=
"text/javascript"
src=
"../js/jquery-easyui-1.3.5/jquery.easyui.min.js"
></script>
<link rel=
"stylesheet"
href=
"../js/jquery-easyui-1.3.5/themes/default/easyui.css"
type=
"text/css"
></link>
<link rel=
"stylesheet"
href=
"../js/jquery-easyui-1.3.5/themes/icon.css"
type=
"text/css"
></link>
<script type=
"text/javascript"
src=
"../js/jquery-easyui-1.3.5/locale/easyui-lang-zh_CN.js"
></script>
<meta http-equiv=
"content-type"
content=
"text/html;charset=UTF-8"
/>
<script type =
"text/javascript"
charset =
"UTF-8"
>
$(
function
(){
var
loginDialog;
loginDialog = $(
'#loginDialog'
).dialog({
closable :
false
,
buttons : [{
text:
'注册'
,
handler:
function
(){
}
},
{
text:
'登录'
,
handler:
function
(){
$.ajax({
url:
'../servlet/Login_Do'
,
data :{
name:$(
'#loginForm input[name=name]'
).val(),
password:$(
'#loginForm input[name=password]'
).val()
},
dataType:
'json'
,
success:
function
(r){
alert(
"进来了"
);
},
error:
function
(){
alert(
"失败"
);
}
});
}
}]
});
});
</script>
</head>
<body style=”width:100%;height:100%;
" >
<p id = "
loginDialog
" title = "
用户登录
" style = "
width:250px;height:250px;
" >
<form id = "
loginForm
" method = "
post
">
<table>
<tr>
<th>用户名 :</th>
<td><input type = "
text
" class = "
easyui-validatebox
" data-options="
required:
true
" name = "
name
"><br></td>
</tr>
<tr>
<th>密码: </th>
<td> <input type = "
password
" class = "
easyui-validatebox
" data-options="
required:
true
" name = "
password"><br></td></td>
</tr>
</table>
</form>
</p>
</body>
</html>