struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GEDA <george.dadule...@romtelecom.ro>
Subject ReferenceError: validateForm_createuser is not defined
Date Wed, 13 Jun 2007 06:34:17 GMT

Please help me. I don't really understand this debug message: ReferenceError:
validateForm_createuser is not defined. Here is the code:

   <s:form action="createuser.do" validate="true">
       <s:textfield label="Name" name="name" />
       <s:password label="Password" name="password" />
       <s:submit theme="ajax" targets="listauseri" />
    </s:form>

        <action name="createuser"
class="ro.romtelecom.test.action.UserAction" method="save">
            <result>/createUser.jsp</result>
        </action>

and the validation xml is named: UserAction-createuser-validation.xml and is
as follows:
<!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator
1.0.2//EN" "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">

<validators>
    <field name="name">
        <field-validator type="requiredstring">
            <message>Trebuie sa introduceti un string!</message>
        </field-validator>
    </field>

    <field name="password">
        <field-validator type="requiredstring">
            <message>Trebuie sa introduceti un string!</message>
        </field-validator>
    </field>
</validators>

What's wrong with this picture ?
-- 
View this message in context: http://www.nabble.com/ReferenceError%3A-validateForm_createuser-is-not-defined-tf3912818.html#a11093545
Sent from the Struts - User mailing list archive at Nabble.com.


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


Mime
View raw message