
The method of error output already explained ( default.htm) is not very user-friendly because the message is displayed so far apart from the actual entry.
The following alternative method exists ( second.htm page):
<tr class="bspTbvCellStd">
<td>zwischen</td>
<td><input type="text" name="time_from"
value="
<% page->write( value = time_from ). %>
" size="5">
<font color="red">
<%= page->messages->assert_message( 'time_from' ) %>
</font></td>
</tr>
In this case, the text belonging to the input field time_from is displayed directly after the input field. The method assert_message returns an error text for a condition (in this case, the attribute name), or an empty string if there is no error message for the condition. You can determine the severity of the error for a condition with assert_severity.