我用Spring+Ibatis做的项目,其中用了Spring的mode来显示页面,按下button提交以后,总会弹出新窗口,请问怎么解决?谢谢。
解决方案 »
- 大菜鸟求助
- jsp报org.apache.jasper.JasperException: Cannot find any information on property '
- struts2 上传怎么老出这样的错
- com.myspl.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException : Unknown datebase 'bookstore'产生原因???
- checkbox 的id怎样获得
- 初学jsp遇到了一个问题
- JAVA中如何取当前月的最大天数?多谢
- 十万火急,问了好多人都不知道怎么回事。JSP高手请与我联系,诚心请教,100分!!!!
- 求救!一个关于乱码的奇怪问题,在线等!!
- 数据库有不同组,用户可分入任意组,可同时属于不同组怎么写啊?
- 数据源连接同步问题
- URL解析问题
如果加的是javascript的话,请修改js代码
<tr>
<td><input type="hidden" name="firstpage" value="1">
<input type="button" value="首 页" onClick=submitFirstPage('uploadfilefirstpage.do',1)>
</td>
<%
if (intPage > 1) {
%> <td><input type="hidden" name="forwardpage" value="<%=intPage - 1%>">
<input type="button" value="上一页" onClick=submitForwardPage('uploadfileforwardpage.do','<%=intPage - 1%>')>
</td>
<%
}
%>
<%
if (intPage < intPageCount) {
%>
<td><input type="hidden" name="nextpage" value="<%=intPage + 1%>">
<input type="button" value="下一页" onClick=submitNextPage('uploadfilenextpage.do','<%=intPage + 1%>')>
</td>
<%
}
%>
<td><input type="hidden" name="lastpage" value="<%=intPageCount%>">
<input type="button" value="尾 页" onClick=submitLastPage('uploadfilelastpage.do','<%=intPageCount%>')>
</td>
<td>页次:<%=intPage%>/<%=intPageCount%>页 <%=intPageSize%>条/页</td>
</tr>
function submitFirstPage(command,para){
window.iForm.action = command;
window.iForm.firstpage.value = para;
window.iForm.submit();
}function submitForwardPage(command,para){
window.iForm.action = command;
window.iForm.forwardpage.value = para;
window.iForm.submit();
}function submitNextPage(command,para){
window.iForm.action = command;
window.iForm.nextpage.value = para;
window.iForm.submit();
}function submitLastPage(command,para){
window.iForm.action = command;
window.iForm.lastpage.value = para;
window.iForm.submit();
}请问怎么改javascript,急。
但是我不太理解
◎_top,在当前的整个浏览器窗口中打开所链接的文档,因而会删除所有框架
<input type="button" value="尾 页" target="填写你要的方式" onClick=submitLastPage('uploadfilelastpage.do','<%=intPageCount%>')>
function submitForm(target){
var sFlag=false;
var iCount=document.iForm.elements.length;
for(i = 0;i < iCount;i++){
if(document.iForm.elements[i].checked==true){
sFlag=true;
break;
}
}
if(sFlag == false){
window.alert("请选择删除文件!");
return;
}
window.iForm.action = target;
window.document.iForm.target = '_self'; //不弹出新窗口
window.iForm.submit();
}