code102.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>cookie<%Cookie cookie1 = new Cookie("user","tom");response.addCookie(cookie1);%>${cookie.user.value}