【发布时间】:2013-08-09 20:21:33
【问题描述】:
我正在尝试使用 JqueryAjax 在 Div empProfTable 中加载 Jsp 页面。我已经这样做了,我不知道这样做是否正确。请帮忙
$.ajax({
url: "GenerateID.jsp",
type: 'post',
success: function(msg) {
$("#empProfTable").load("${pageContext.request.contextPath}/jsp/admin/AddStaff/addempdetail.jsp?Education=1&empid=" + id);
}
这是我的jsp页面
<% if(request.getParameter("Education")!=null)
{
%>
<div id="EduQual" style="margin-top: 50px;" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr bgcolor="#7ce9ff">
<td width="12%"><strong>Empcode</strong></td>
<td width="10%"><strong>Education</strong></td>
</tr></table>
<% } %>
我也没有收到任何错误。提前致谢
【问题讨论】:
-
方法不对,第一个url是干什么用的?