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

发布时间:2021-02-22 19:36:48

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

网友回答

给你一个例子:
<%@page contentType=text/html;charset=gbk %
<%@taglib uri=/struts-tags prefix=s%<html<head<titlewele</title</head<body<h3 align=center<s:property value=message /</h3</body</html上述代码中,<s:property value=“message” /是使用struts的标签来
读取当前ActionContext所关联的ValueStack中的对象的信息,其中
message为一个OGNL表达式.
以上问题属网友观点,不代表本站立场,仅供参考!