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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to