Helma logo
helma.org » Home > Stories > res.write()

res.write()

Writes a string to the output buffer.

Syntax
res.write(String)

Transforms the passed argument to a string (only if necessary) and appends the result to the response string buffer. Throws an error if no argument or an undefined argument is passed.

Example
var now = new Date();
res.write("current time: " + now);

current time: Thu Feb 15 23:34:29 GMT+01:00 2001


... comment


Page last modified on 2002-07-10 08:19 by tobi