public class Out extends AbstractAction
| Constructor and Description |
|---|
Out() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getEscapeXML()
Returns whether to escape XML.
|
int |
getMaxlength()
Returns the maxlength of bytes to output.
|
boolean |
getNbsp()
Returns whether to generate if the content is empty.
|
String |
getValue()
Returns the value.
|
boolean |
isPre()
Returns whether to preserve the white spaces, such as space.
|
void |
render(ActionContext ac,
boolean nested)
Processes the action and renders the output to
ActionContext.getOut(). |
void |
setEscapeXML(boolean escapeXML)
Sets whether to escape XML.
|
void |
setMaxlength(int maxlength)
Sets the maxlength to output.
|
void |
setNbsp(boolean nbsp)
Sets whether to generate if the content is empty.
|
void |
setPre(boolean pre)
Sets whether to preserve the white spaces, such as space.
|
void |
setValue(String value)
Sets the value.
|
String |
toString() |
append, append, append, getIf, getUnless, isEffective, setIf, setUnless, toScopepublic boolean getEscapeXML()
public void setEscapeXML(boolean escapeXML)
public boolean getNbsp()
public void setNbsp(boolean nbsp)
public String getValue()
public void setValue(String value)
public int getMaxlength()
Default: 0 (no limit).
public void setMaxlength(int maxlength)
public void setPre(boolean pre)
public boolean isPre()
Default: false;
public void render(ActionContext ac, boolean nested) throws DspException, IOException
ActionActionContext.getOut().nested - whether there is any nested content.DspExceptionIOExceptionCopyright © 2021. All rights reserved.