Class Else

  extended by org.apache.struts2.components.Component
      extended by 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:elseif test="%{true}">
      <div>Will Be Executed</div>
      <div>Will Not Be Executed</div>

Field Summary
Fields inherited from class org.apache.struts2.components.Component
actionMapper, COMPONENT_STACK, id, parameters, stack
Constructor Summary
Else(ValueStack stack)
Method Summary
 boolean start(Writer writer)
          Callback for the start tag of this component.
Methods inherited from class org.apache.struts2.components.Component
addAllParameters, addParameter, altSyntax, copyParams, determineActionURL, determineActionURL, determineNamespace, end, end, fieldError, findAncestor, findString, findString, findValue, findValue, findValue, getComponentStack, getId, getParameters, getStack, popComponentStack, setActionMapper, setId, toString, usesBody
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Else(ValueStack stack)
Method Detail


public boolean start(Writer writer)
Description copied from class: Component
Callback for the start tag of this component. Should the body be evaluated?

start in class Component
writer - the output writer.
true if the body should be evaluated

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.