Helma logo
helma.org » Home > Stories > res.message

res.message

Buffers a string for output.

Syntax
res.message

When this property is set its value can be retrieved either by res.message from within an action or a JavaScript file or by the response macro from within a skin file.

Additionally, it will survive an HTTP redirect which can be necessary to display warnings or error messages to the user. The property's value will be reset to null not later than a redirected response was output.

Note: Please be aware that both res.message and res.data.message corresponds to the response.message macro. However, res.message has higher priority if both values should be set.

Syntax
File main.skin:
<% response.message %>

File main.hac:
res.message = "Hello, World!";
res.data.message = "Test";
this.renderSkin("main");

Hello, World!


... comment


Page last modified on 2001-11-29 19:47 by tobi