public class If extends AbstractAction
| Constructor and Description |
|---|
If() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getTest()
Returns the test result.
|
boolean |
isTrim()
Returns whether to trim the result.
|
void |
render(ActionContext ac,
boolean nested)
Processes the action and renders the output to
ActionContext.getOut(). |
void |
setTest(boolean cond)
Sets the test result.
|
void |
setTrim(boolean trim)
Sets whether to trim the result.
|
String |
toString() |
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScopepublic boolean getTest()
public void setTest(boolean cond)
public boolean isTrim()
Default: true.
public void setTrim(boolean trim)
public void render(ActionContext ac, boolean nested) throws DspException, IOException
ActionActionContext.getOut().nested - whether there is any nested content.DspExceptionIOExceptionCopyright © 2018. All rights reserved.