你试试这个function window.history.back(){
document.location.reload();
}
document.location.reload();
}
解决方案 »
- 真诚请教各位大湿,这两种事务有啥区别呢?
- ServerSocket的问题
- 请问你们项目新建时根目录用默认的WebRoot还是用ROOT?
- 关于java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
- 用Struts遇到的问题
- struts页面问题——在线等。
- jdo中可以通过配置xml文件来映射数据库表,请问也同样可以映射存储过程么?如果可以,请给个例子,谢谢
- 在不改变源代码的情况下,如何配置weblogic,然其提高对客户端请求的相应速度?
- EJB ClassCastException
- Java同步块问题
- struts2 标签 form 的action问题
- 请教一个服务器的基础问题
可以用ajax来控制吧.读取本地记录不从服务器请求,但ajax可以再次请求,如果没有用户信息,就跳转.
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
UserSessionInfo userSessionInfo=null;
if (SessionUtils.getAttribute(request, "UserSession")!=null){
userSessionInfo =(UserSessionInfo)SessionUtils.getAttribute(request, "UserSession");
out.println("<script>location.href='"+path+"/succeed.jsp';</script>");
}
else{
out.println("<script>alert('用户未登陆');</script>");
out.println("<script>location.href='"+path+"/index.jsp';</script>");
return;
}
%>
SessionUtils这个是我自己写的读session类.lz可以不用自己写.
如果有什么不对的地方请大家指出.
function window.history.back(){
document.location.reload();
}
虽然没试过, 呵呵