| |
|
| java.lang.Object org.apache.struts2.dispatcher.StrutsResultSupport org.apache.struts2.dispatcher.PlainTextResult
PlainTextResult | public class PlainTextResult extends StrutsResultSupport (Code) | |
A result that send the content out as plain text. Usefull typically when needed
to display the raw content of a JSP or Html file for example.
- location (default) = location of the file (jsp/html) to be displayed as plain text.
- charSet (optional) = character set to be used. This character set will be used to set the
response type (eg. Content-Type=text/plain; charset=UTF-8) and when reading
using a Reader. Some example of charSet would be UTF-8, ISO-8859-1 etc.
<action name="displayJspRawContent" >
<result type="plaintext">/myJspFile.jsp</result>
</action>
<action name="displayJspRawContent" >
<result type="plaintext">
<param name="location">/myJspFile.jsp</param>
<param name="charSet">UTF-8</param>
</result>
</action>
|
BUFFER_SIZE | final public static int BUFFER_SIZE(Code) | | |
PlainTextResult | public PlainTextResult()(Code) | | |
PlainTextResult | public PlainTextResult(String location)(Code) | | |
doExecute | protected void doExecute(String finalLocation, ActionInvocation invocation) throws Exception(Code) | | |
getCharSet | public String getCharSet()(Code) | | Set the character set
The character set |
setCharSet | public void setCharSet(String charSet)(Code) | | Set the character set
Parameters: charSet - The character set |
Fields inherited from org.apache.struts2.dispatcher.StrutsResultSupport | final public static String DEFAULT_PARAM(Code)(Java Doc)
|
|
|
|