`
yzz9i
  • 浏览: 216757 次
  • 性别: Icon_minigender_1
  • 来自: 湖南
社区版块
存档分类
最新评论

Java 动态加载jsp页面 在div 刷新这么简单 就可以实现了

 
阅读更多
引用

<script type="text/javascript">
var url="<%=basePath%>/qne.do?p=pessegerCountSet";
           $.post(url,{id:count},function(h){
                document.getElementById("paserDivid").innerHTML=h;
                });
</script>

只需要这个脚本就够了,只是比较简单
引用


<td colspan="8">
<div id="paserDivid">
</td>

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");
	}
0
0
分享到:
评论
1 楼 aiwei 2015-04-24  
可不可以解释一下每个参数的意思?看不明白啊

相关推荐

Global site tag (gtag.js) - Google Analytics