Assuming it's not a typo, inside your onsubmit it should be return validateClientForm(this).
Saul -----Original Message----- From: Ciaran Hanley [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 09, 2003 2:54 PM To: [EMAIL PROTECTED] Subject: Error: Object expected Hi, I'm trying to get use struts validator with my application. I am currently working with a very simple example, only checking that the required field has been filled but keep getting an "Error: Object expected error" I think the error is on the "<html:form action" line Here is my JSP file: <%@ page language="java" %> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <html:html locale="true"> <head> <title><bean:message key="form.title" /></title> <html:base/> </head> <center><h3><bean:message key="form.heading" /><h3></center><hr> <center> <html:form action="/addclient" focus="clientName" onsubmit="return validateClient(this)"> <table> <tr> <td><bean:message key="formdata.name" /></td> <td><html:text property="clientName" /></td> </tr> </table> <html:submit property="submit" value="Submit" /> </html:form> </center> <html:javascript formName="clientForm" /> </body> </html:html> Any help? Thanks in advance, Ciaran --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

