struts2中的s:property标签如何使用?
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/21 09:10:24
struts2中的s:property标签如何使用?
![struts2中的s:property标签如何使用?](/uploads/image/z/2538756-36-6.jpg?t=struts2%E4%B8%AD%E7%9A%84s%3Aproperty%E6%A0%87%E7%AD%BE%E5%A6%82%E4%BD%95%E4%BD%BF%E7%94%A8%3F)
给你一个例子:
<%@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表达式.
<%@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表达式.