jsp页面form表单提交,如何让页面不跳转?
<form name="addFileForm" method="post" action="<%=path%>/message/MessageUploadFileTotalAction.do" enctype="multipart/form-data" >
<table border="1" cellpadding="2" cellspacing="0" class="table-class" width="95%" align="center">
<tr>
<TD width="30%" align="right" valign="middle" nowrap class="RinghtTrYellow">选择文件:</TD>
<TD width="50%" align="left" valign="middle" nowrap class="RinghtTrword">
<input type="file" name="filePath" id="filePath" value="浏览..." / class="btn">
<img border="0" src="<%=path%>/images/goldstar.gif">
<input type="submit" name="submitFile" id="submitFile" value="导入" class="btn"></TD>
</tr>
</table>
</form>
在Action中返回空值的话,还是会跳转到一个空的页面。
我想实现的效果是:点击导入之后,还停留在当前页面,但不是跳转到当前页面,因为要保留输入框里的路径。