Package org.apache.struts2.result
Interface PlainResult
- All Superinterfaces:
- Result,- Serializable
This result can only be used in code, as a result of action's method, eg.:
 
public PlainResult execute() { return response -> response.write(""); }
Please notice the result type of the method is a PlainResult not a String.
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidexecute(ActionInvocation invocation) Represents a generic interface for all action execution results.default booleanControls if result should ignore already committed Http response If set to true only a warning will be issued and the rest of the result will be skippedvoidwrite(ResponseBuilder response) Implement this method in action using lambdas
- 
Field Details- 
LOGstatic final org.apache.logging.log4j.Logger LOG
 
- 
- 
Method Details- 
executeDescription copied from interface:ResultRepresents a generic interface for all action execution results. Whether that be displaying a webpage, generating an email, sending a JMS message, etc.
- 
writeImplement this method in action using lambdas- Parameters:
- response- a response builder used to build a Http response
 
- 
ignoreCommitteddefault boolean ignoreCommitted()Controls if result should ignore already committed Http response If set to true only a warning will be issued and the rest of the result will be skipped- Returns:
- boolean false by default which means an exception will be thrown
 
 
-