chap1-10a.jsp
来自「jsp 主要是界面的jsp的程序的例子」· JSP 代码 · 共 21 行
JSP
21 行
<%@ page contentType="text/html;charset=GBK" %>
<HTML>
<HEAD>
<title>简易购物车session1</title>
</HEAD>
<%
if(session.getAttribute("flag") == null) {
session.setAttribute("flag","ok");
session.setAttribute("shop","");
session.setAttribute("price","");
}
session.setAttribute("shop",session.getAttribute("shop")+"橘子,");
session.setAttribute("price",session.getAttribute("price")+" 100,");
out.println(session.getAttribute("shop") + "<br>");
out.println(session.getAttribute("price") + "<br>");
%>
<BODY>
<br>
<a href="chap1-10b.jsp">chap1-10b.jsp</a>
</BODY>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?