On 31-03-09 15:12, Henrik Brautaset Aronsen wrote:
The form validation error messages are missing after I upgraded from 2.0.11 to 2.1.6, and I can't figure out why. When I submit an invalid form, the form just comes back without the visible error messages.
...
The jsp:
...
<s:form action="MySupport" cssClass="settings">
<table>
<s:textfield label="Category " name="form.supportCategory" />
        ...
<input type="submit" value="Send e-mail"/>
</table>
</s:form>

I've done some more digging: I can see the error messages by using <s:fielderror/> [1], but why aren't they automatically attached to the <s:textfield> like they were in Struts 2.0.x?

Henrik

[1] Or <s:fielderror><s:param value="%{'supportCategory'}" /></s:fielderror> for a specific error


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to