check.jsp
来自「《精通JSP编程 》源代码(赵强那本) 很有用的源代码」· JSP 代码 · 共 25 行
JSP
25 行
<%@ page contentType="text/html; charset=GB2312" %>
<%@ page session="true" %>
<html>
<head>
<title>
checkUser
</title>
</head>
<body>
<h1>Welcome to JNEstore Shop</h1>
<%
String name=null;
name=request.getParameter("username");
if(name!=null)session.setAttribute("username",name);
%>
<a href="<%=response.encodeURL("browse.jsp")%>">购物</a>
<a href="<%=response.encodeURL("logout.jsp")%>">注销</a>
<p>当前用户为:<%=name%> </P>
请单击购物按钮进入购物页面
<P></P>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?