首页 > 代码库 > Struts2_Tags学习总结
Struts2_Tags学习总结
Tags
- 通用标签
a) Property
i. 介绍:Used to get the property of a value, which will default to the top of the stack if none is specified.
ii. 重要参数:
- Value:类型Object
b) Set
i. 介绍:The set tag assigns a value to a variable in a specified scope。
ii. 重要参数:
- Scope:类型String,可以是application, session, request, page, or action.
- Value:类型String,
- Var:类型String
c) Bean
i. 介绍:Instantiates a class that conforms to the JavaBeans specification.
ii. 重要参数:
- Name:类型String
- Var:类型String
d) Param
i. 介绍:This tag can be used to parameterize other tags.
ii. 重要参数:
- Name:类型String
- Value:类型String
e) Debug
i. 介绍:Outputs the content of the Value Stack.
- 控制标签
a) If elseif else
b) Iterator
i. 介绍:Iterator will iterate over a value. An iterable value can be any of: java.util.Collection, java.util.Iterator, java.util.Enumeration, java.util.Map, or an array.
c) Subset
i. 介绍:A tag that takes an iterator and outputs a subset of it
- UI标签
- $ # %区别
a) $用于struts配置文件
b) #取得actionContext的值
c) 将文本属性解析为ognl。
Struts2_Tags学习总结