org.apache.struts2.components
类 Else
java.lang.Object
org.apache.struts2.components.Component
org.apache.struts2.components.Else
public class Else
- extends Component
Perform basic condition flow. 'If' tag could be used by itself or with 'Else If' Tag and/or single/multiple 'Else'
Tag.
no params
<s:if test="%{false}">
<div>Will Not Be Executed</div>
</s:if>
<s:elseif test="%{true}">
<div>Will Be Executed</div>
</s:elseif>
<s:else>
<div>Will Not Be Executed</div>
</s:else>
构造方法摘要 |
Else(com.opensymphony.xwork2.util.ValueStack stack)
|
方法摘要 |
boolean |
start(Writer writer)
Callback for the start tag of this component. |
从类 org.apache.struts2.components.Component 继承的方法 |
addAllParameters, addParameter, altSyntax, copyParams, end, getComponentStack, getParameters, getStack, setActionMapper, setThrowExceptionsOnELFailure, setUrlHelper, usesBody |
Else
public Else(com.opensymphony.xwork2.util.ValueStack stack)
start
public boolean start(Writer writer)
- 从类
Component
复制的描述
- Callback for the start tag of this component.
Should the body be evaluated?
- 覆盖:
- 类
Component
中的 start
- 参数:
writer
- the output writer.
- 返回:
- true if the body should be evaluated