如题,怎么做啊
解决方案 »
- myeclipse6.5+tomcat6.0 配置好了,但有点问题,求救~~
- 帮忙:hql再java中如何实现多表查询???
- 我是用webwork开发的,不明白报的错什么意思!找不到原因 麻烦帮我看看!
- 我看到一个奇怪的java语句!
- 请教 上传图片得重定向问题!!!!
- 关于正则表达式问题
- 如何调用win32的dll,例如USER32.dll,为何我的不行呢?
- 最新的Spring官网下载Link实在是找不到啊!spring framework
- 焦急中,nosuchmethoderror的错误,弄了半天了。
- 请问:rtf 文件中的中文是何种编码?
- 非常经典的Java技术Blog(完全原创)
- fckeditor 刷新后怎样继续显示以前的内容?
if(request.getSession()==null){
response.sendRedirect("login.html");
}else{
}%>
location.href="要去的地址";
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page language="java" contentType="text/html; charset=GBK" %><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK" />
<title></title>
</head>
<body>
<jsp:forward page="/pages/index.html"/>
</body>
</html>
if(session.getAttribute("CURRUSER") == null) {
// session中没有登陆信息或登陆超时
request.setAttribute("info", "请以管理员身份登录!");
String url = "/pages/adminlogin.jsp";
request.getRequestDispatcher(url).forward(request, response);
return;
}