Apache Struts 2 Documentation > Home > Guides > Core Developers Guide > Result Types > PlainText Result |
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>