struts2中的s:property标签如何使用?

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/28 05:51:52

struts2中的s:property标签如何使用?
struts2中的s:property标签如何使用?

struts2中的s:property标签如何使用?
给你一个例子:
<%@page contentType=text/html;charset=gbk %
<%@taglib uri=/struts-tags prefix=s%<html<head<titlewelcome</title</head<body<h3 align=center<s:property value=message /</h3</body</html上述代码中,<s:property value=“message” /是使用struts的标签来
读取当前ActionContext所关联的ValueStack中的对象的信息,其中
message为一个OGNL表达式.