cookie.jsp
来自「一个用jsp写的完整的论坛源代码」· JSP 代码 · 共 15 行
JSP
15 行
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import ="com.bcxy.bbs.util.GCookie,
com.bcxy.bbs.forum.*,
java.util.Hashtable"%>
<%
String username = GCookie.getCookieValue(request,"UJBBUName",null);
String password = GCookie.getCookieValue(request,"UJBBUPSW",null);
if(username==null||password==null){
out.println("转向登陆地页面");
response.sendRedirect("login.jsp");
}else{
response.sendRedirect("checklogin.jsp?username="+username+"&password="+password);
}
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?