com.opensymphony.webwork.components
Class Else
java.lang.Object
com.opensymphony.webwork.components.Component
com.opensymphony.webwork.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
<ww:if test="%{false}">
<div>Will Not Be Executed</div>
</ww:if>
<ww:elseif test="%{true}">
<div>Will Be Executed</div>
</ww:elseif>
<ww:else>
<div>Will Not Be Executed</div>
</ww:else>
- Author:
- Rick Salsa (rsal@mb.sympatico.ca), tmjee
Method Summary |
boolean |
start(Writer writer)
Callback for the start tag of this component. |
Methods inherited from class com.opensymphony.webwork.components.Component |
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineNamespace, end, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setId, toString, usesBody |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Else
public Else(OgnlValueStack stack)
start
public boolean start(Writer writer)
- Description copied from class:
Component
- Callback for the start tag of this component.
Should the body be evaluated?
- Overrides:
start
in class Component
- Parameters:
writer
- the output writer.
- Returns:
- true if the body should be evaluated