[quote]
<script type="text/javascript">
var url="<%=basePath%>/qne.do?p=pessegerCountSet";
$.post(url,{id:count},function(h){
document.getElementById("paserDivid").innerHTML=h;
});
</script>
[/quote]
只需要这个脚本就够了,只是比较简单
[quote]
<td colspan="8">
<div id="paserDivid">
</td>
[/quote]
action里面:
<script type="text/javascript">
var url="<%=basePath%>/qne.do?p=pessegerCountSet";
$.post(url,{id:count},function(h){
document.getElementById("paserDivid").innerHTML=h;
});
</script>
[/quote]
只需要这个脚本就够了,只是比较简单
[quote]
<td colspan="8">
<div id="paserDivid">
</td>
[/quote]
action里面:
public ActionForward pessegerCountSet(ActionMapping mapping, ActionForm form,
HttpServletRequest request, HttpServletResponse response)
throws Exception {
System.out.println("===");
request.setAttribute("paserCount", Integer.parseInt(request.getParameter("id")));
return new ActionForward("/qneBusiness/passengerInfo.jsp");
}