不刷新问题,改为
<%response.sendRedirect("index.jsp?refresh="+(new java.util.Date()));%>
<%response.sendRedirect("index.jsp?refresh="+(new java.util.Date()));%>
解决方案 »
- 关于java mail实现自定义“@xxxx.com”的功能并且可以收发邮件!
- tomcat 内存溢出 ,请大虾指教!20分
- hibernate的入门级问题
- 请教:eclipse开发jsp项目时,jsp页面是直接在eclipse中写的吗?eclipse能否辅助写网页?
- 请教Struts中<Bean:define />标记的问题!
- 关于用JSP写工行在线支付的程序
- 在tomcat中<welcome-file-list>中间如果是用servlet怎样设置</welcome-file-list>?
- Tomcat和JDK的配置问题
- java中如何实现字符和unicode码的转换?
- 怎么对齐文本框?????
- jsp环境搭建不成功,为什么?
- 请问怎么解决这个中文问题?
在deldata.jsp用下面javascript语句
代替response.sendRedirect.
<head>
<script language="javascript">
function closeWin()
{
window.top.location.replace("index.jsp");
}
</script>
</head>
<body onload="setTimeout('closeWin()',500);">
<center><p>Deleting...,Please Waiting</p></center>
</body>是不是sendRedirect返回太快,index中的conn只察觉到只有第一个数据被删除的原因?
假如用open打开就没事了,到现在还不知道为什么。
:(
(我用的是oracle的开台)
"
不刷新问题,改为
<%response.sendRedirect("index.jsp?refresh="+(new java.util.Date()));%>
"居然不行,那就改服务器设置吧(如果只是为了骗老板,则把浏览器设置改一改也行);
上面加上一个当前TIME参数的目的是因为TIME值总不一样,当客户端请求时,服务器发现请求页面的参数变了,所以会重新生成一个页面输出给客户端,(我要走了)