code100.jsp

<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>获取requestScope范围的数据<%request.setAttribute("userName", "tom");%>${requestScope.userName}<%session.setAttribute("manager", "lucy");%>${sessionScope.manager}<%application.setAttribute("message", "欢迎来到聊天室");%>${applicationScope.message}