<%@ page language="java" contentType="text/html; charset=utf-8"%>
<html>
<head></head>
<body>
Cookie对象的信息:<br />
${cookie.userName} <br /><br />
Cookie对象的名称和值:<br />
${cookie.userName.name}=${cookie.userName.value }
<% response.addCookie(new Cookie("userName", "tom")); %>
</body>
</html>
用表达式语句测试并显示Cookie中的某个值
最新推荐文章于 2024-11-09 12:43:52 发布