In a Sturts application I am trying to get my error messages to display at the top of a form. To avoid the <html:errors/> tag I am using the code below.
<logic:messagesPresent>
<span id="errorsHeader">
<bean:message key="errors.validation.header"/>
</span>
<html:messages id="error">
<cut value="${error}"/>
</html:messages>
<hr>
<logic:messagesPresent>
This works fine when there are errors present. But when there are none it still displays the "error.validation.header" key. It seems like it sees messages present if there are not any.
Any body see anything wrong.
Thanks in advance
Jeff Sulman
<logic:messagesPresent>
<span id="errorsHeader">
<bean:message key="errors.validation.header"/>
</span>
<html:messages id="error">
<cut value="${error}"/>
</html:messages>
<hr>
<logic:messagesPresent>
This works fine when there are errors present. But when there are none it still displays the "error.validation.header" key. It seems like it sees messages present if there are not any.
Any body see anything wrong.
Thanks in advance
Jeff Sulman