Hi all,
I'm trying to use the ValidatorForm feature of struts. I have a
validation.xml:
<form name="userForm">
<field property="email" depends="email">
<arg0 key="userForm.email"/>
</field>
</form>
which I've copied straight from the struts tutorial that validates an
e-mail address.
I have a JSP page:
<%@ taglib uri="/tags/struts-html" prefix="html" %>
<%@ taglib uri="/tags/struts-bean" prefix="bean" %>
<%@ taglib uri="/tags/struts-logic" prefix="logic" %>
<html:html xhtml="true">
<body>
<html:errors />
<html:form action="userAddressEdit">
<html:text property="email" />
<html:submit />
</html:form>
</body>
</html:html>
But when I type an invalid e-mail address, in html:errors I always get:
null is an invalid e-mail address.
What am I doing wrong? Am I missing a taglib?
Any help is greatly appreciated, as I can't figure this one out.
Thanks,
--
Titus Barik ([EMAIL PROTECTED])
http://www.barik.net
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]