request.---->
<s:property value="#request.mySessionPropKey"/> or
<s:property value="#request['mySessionPropKey']"/> or
<s:property value="#request['myRequestPropKey']"/> or
${requestScope.buttonRoleMap} or
${request.buttonRoleMap} or
${buttonRoleMap}
session---->
<s:property value="#session.mySessionPropKey"/> or
<s:property value="#session['mySessionPropKey']"/> or
<s:property value="#session['myRequestPropKey']"/> or
${session.buttonRoleMap}
application--->
<s:property value="#application.mySessionPropKey"/> or
<s:property value="#application['mySessionPropKey']"/> or
<s:property value="#application['myRequestPropKey']"/> or
${application.buttonRoleMap}
本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/coffeeing/archive/2010/05/24/5620367.aspx
ognl参考例子:http://struts.apache.org/2.1.6/docs/ognl.html
<s:property value="#request.mySessionPropKey"/> or
<s:property value="#request['mySessionPropKey']"/> or
<s:property value="#request['myRequestPropKey']"/> or
${requestScope.buttonRoleMap} or
${request.buttonRoleMap} or
${buttonRoleMap}
session---->
<s:property value="#session.mySessionPropKey"/> or
<s:property value="#session['mySessionPropKey']"/> or
<s:property value="#session['myRequestPropKey']"/> or
${session.buttonRoleMap}
application--->
<s:property value="#application.mySessionPropKey"/> or
<s:property value="#application['mySessionPropKey']"/> or
<s:property value="#application['myRequestPropKey']"/> or
${application.buttonRoleMap}
本文来自优快云博客,转载请标明出处:http://blog.youkuaiyun.com/coffeeing/archive/2010/05/24/5620367.aspx
ognl参考例子:http://struts.apache.org/2.1.6/docs/ognl.html