Dashboard > WebWork > ... > Result Types > PlainText Result
  WebWork Log In View a printable version of the current page.  
  PlainText Result
Added by tm_jee, last edited by tm_jee on Mar 11, 2006
Labels: 
(None)

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.

Parameters

  • 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.

Examples

<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>

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators