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

res.writeln()

Writes a string to the output buffer and appends a linebreak.

Syntax
res.writeln(String)

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

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

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


... comment


Page last modified on 2005-09-16 18:59 by czv