el表达式和ognl表达式访问带点的name属性

来源:互联网 发布:天翼合伙人软件 编辑:程序博客网 时间:2024/05/20 13:37
<%@ page language="java" pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<%@taglib uri="/struts-tags"  prefix="s"%>
<html>
    <head>
    </head>
    <body style="font-size:30px;">
        <h1>
        你好
    </h1>
    ${sessionScope['day03.user'].userName}
    <br/>
    <s:property value="#session['day03.user'].userName"/><br/>
    <s:debug/>
    </body>
</html>