当我点击链接时,我必须弹出一个窗口,该窗口将接受一些细节并将处理过的数据发送回该页面。
答案 0 :(得分:0)
您可以设置一些要求的参数堡垒,并在弹出窗口中使用相同的
例如:
在父页面中:
<% request.setAttribute("someVariable",request.getRequestURI()); %>
在孩子身上
<% String oldUrl = (String)request.getAttribute("someVariable");
答案 1 :(得分:0)
使用bootstrap你可以这样做.....
<a href="#" data-toggle="modal" data-target="#password">I forgot my password</a>
//------------bootstrap modal--------------
<div class="modal fade" id="password" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="exampleModalLabel">Enter Mail</h4>
</div>
<div class=" modal-body">
<form action="forgot_password.php" method="POST" >
<div class="row">
<div class="form-group col-md-8">
<label for="recipient-name" class="control-label">Mail Id:</label>
<input type="mail" name="mail" class="form-control" />
</div>
</div>
</div>
<div class="modal-footer">
<input type="submit" value="Send" class="btn btn-primary">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</form>
</div>