Scoped GlideScriptedProcessor - writeOutput(String contentType, String s)

Writes the specified string to the current URL in the specified character-encoding.

Table 1. Parameters
Name Type Description
contentType String Sets the content type of the response sent to the client, if the response has not been committed, and may include a character-encoding specification.
s String The string to write.
Table 2. Returns
Type Description
var name = g_request.getParameter("name");
g_processor.writeOutput("text/plain", "Hello " + name);