| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.struts2.dispatcher.StrutsResultSupport
org.apache.struts2.dispatcher.PlainTextResult
public class PlainTextResult
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.
 
 <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>
 
 
| Field Summary | |
|---|---|
static int | 
BUFFER_SIZE
 | 
private  String | 
charSet
 | 
private static Logger | 
LOG
 | 
private static long | 
serialVersionUID
 | 
| Fields inherited from class org.apache.struts2.dispatcher.StrutsResultSupport | 
|---|
DEFAULT_PARAM | 
| Fields inherited from interface org.apache.struts2.StrutsStatics | 
|---|
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERVLET_CONTEXT, SERVLET_DISPATCHER, STRUTS_PORTLET_CONTEXT | 
| Constructor Summary | |
|---|---|
PlainTextResult()
 | 
|
PlainTextResult(String location)
 | 
|
| Method Summary | |
|---|---|
protected  void | 
doExecute(String finalLocation,
          ActionInvocation invocation)
Executes the result given a final location (jsp page, action, etc) and the action invocation (the state in which the action was executed).  | 
 String | 
getCharSet()
Set the character set  | 
 void | 
setCharSet(String charSet)
Set the character set  | 
| Methods inherited from class org.apache.struts2.dispatcher.StrutsResultSupport | 
|---|
conditionalParse, execute, getLastFinalLocation, getLocation, setEncode, setLocation, setParse | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final int BUFFER_SIZE
private static final Logger LOG
private static final long serialVersionUID
private String charSet
| Constructor Detail | 
|---|
public PlainTextResult()
public PlainTextResult(String location)
| Method Detail | 
|---|
public String getCharSet()
public void setCharSet(String charSet)
charSet - The character set
protected void doExecute(String finalLocation,
                         ActionInvocation invocation)
                  throws Exception
StrutsResultSupport
doExecute in class StrutsResultSupportfinalLocation - the location (jsp page, action, etc) to go to.invocation - the execution state of the action.
Exception - if an error occurs while executing the result.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||