📄 ognl.jsp
字号:
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<center>
<s:debug></s:debug>
<h1>访问ValueStack</h1>
栈顶:<s:property/><br/>
book的name属性:
<s:property value="name"/><br/>
age:<s:property value="age"/><br/>
company:<s:property value="company"/>
<h1>访问ActionContext</h1>
<s:property/>
name:<s:property value="abc"/><br/>
request:
<s:property value="#request.scope"/><br/>
session:
<s:property value="#session.scope"/><br/>
application:
<s:property value="#application.scope"/><br/>
parameters:
<s:property value="#parameters.gender"/><br/>
attr:
<s:property value="#attr.scope"/>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -