2.jsp:useBean,jsp:setProperty.jsp:getProperty:page范围

来源:互联网 发布:linux arp缓存表 编辑:程序博客网 时间:2024/03/29 06:44
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><html>  <head>      <base href="<%=basePath%>">    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">        <title></title>        <script type="text/javascript" src=""></script>  </head>    <body>     <%-- XiaoZheng对象设置在page范围中,取不到 --%>  ${XiaoZheng.name }    </body>  </html>


原创粉丝点击