content.jsp.
test.jsp
My name is :
<%=request.getParameter("name")%>
test.jsp
<html>
<head>
<script type="text/javascript" language="JavaScript" src="/JFP/js/jquery/jquery-1.5.1.js"></script>
</head>
<body>
<table>
<tr>
<td id="Load">Button</td>
<td><input value="" size="100" /></td>
</tr>
</table>
<script>
$("#Load").click(function(){
var postData = 'name=tian cai';
$.ajax({
url:"https://localhost:9444/HKGCB/content.jsp",
type:"POST",
data:postData,
success:function(respon){
alert(respon);
},
error:function(er){
alert(er);
}
});
});
</script>
</body>
</html>