jsp 中jQuery 不能交付请求

jsp 中jQuery 不能提交请求
具体需求:jsp写一个登陆页面 包含用户名、密码输入框和 登陆按钮,点击登陆后调用jQuery的get()方法会向dopost.jsp提交请求 验证登陆信息 并在登陆页面<span>标签显示 验证结果;但是在tomcat中点击登陆后不会有任何反应,求大神解决

index.jsp登陆页面代码:
-------------------------------------------------------------------------------------------------
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录验证</title>
<script type="text/javascript" src="jquery-1.11.1.min.js"></script>
<script type="text/javascript">
$(function(){
$("#login").bind("click",function(){
var username=$("#username").val();
var password=$("username").val();;
if(username==""||password==""){

$("#msg").html("用户名不能为空");
return;
}
 $.get("dispose.jsp",{username:username,password:password},function(data){
$("#msg").html=(data);
}); 
});
});
</script>
</head>
<body>
<form action="" method="post">
<p>用户名:<input type="text" name="username" id="username"/></p>
<p>密    码:<input type="text" name="password" id="password"/></p>
<p><input type="submit" id="login" value="登陆"/></p>
<span id="msg"></span>
</form>
</body>
</html>
------------------------------------------------------------------------------------------------------------------
dispose.jsp页面代码:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录处理</title>

</head>
<body>
<%
request.setCharacterEncoding("utf-8");
String username=request.getParameter("username");
String password=request.getParameter("password");
out.print(username);
out.print(password);
if(username.equals("admin")&&password.equals("admin")){
out.print("登陆成功");
}else{
out.print("登陆失败");
}
%>
</body>
</html>
------解决思路----------------------
看下控制台那边是否有报错