我正在使用 spring mvc 我已经通过 jquery 和 css 制作了一个弹出窗口,并且 Popup 将从服务器加载数据并且运行良好。但问题是我想使用按钮单击动态地弹出弹出窗口,而 page1.jsp 正在加载错误消息是:......page2.jsp "e not found............请帮忙。
page2.jsp
<div id="dialog">
<div id="overlay">
.........
<form:form id="testForm" method="post">
<tr>
<td> ok </td>
</tr>
</form:form>
..........
</div>
</div>
page1.jsp
$("#btnClick").click(function(){
$("#popupblock").load("../view/page2.jsp");
custDialog(dialog);
)};
<html>
......
<div>
<input type="button" id="btnClick">
</div>
<div id="#popupblock">
</div>
.......
</html>
after button click should be appeared like that.
<div id="popupblock">
<jsp:include page="page2.jsp" />
</div>
If I assign statically then popup is loading data but
dynamically by jquery not working.