hi
i am doing client side validations i have made all necessary changes in my project in jsp i have included
In my validation.xml i have defined all validation
validator.xml is also updated
Message Resources all 3 files
my action class & form class are also changed but still on running my form
it shows me following error
No form found under 'userLoginForm' in locale 'en_US'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.
Aditi agarwal wrote:hi
i am doing client side validations i have made all necessary changes in my project in jsp i have included
In my validation.xml i have defined all validation
validator.xml is also updated
Message Resources all 3 files
my action class & form class are also changed but still on running my form
it shows me following error
No form found under 'userLoginForm' in locale 'en_US'. A form must be defined in the Commons Validator configuration when dynamicJavascript="true" is set.
Please help
thanks in advance
Hi Aditi
just change here
onsubmit="validateUserLoginForm(this);
but i have read in all tutorials that it need to be same as that of formbean type
still as you said i have changed it but of no effect
thanks
Hey ...
make sure that form class is extends validatorForm and in validation.xml check the formname <form name="xxxx"> should be same in struts-config.xml
and <html:javascript formName="xxxx" />
move <html:javascript formName="userLoginForm"> tag in <head>
and change this <html:form action="/userLogin" onsubmit="validateUserLoginForm(this); ">
to <html:form action="/userLogin" onsubmit="validateuserLoginForm(this); ">
Aditi agarwal wrote:hey thanks shiva for your prompt reply
now atleast error is not coming my page is running but the validations are not working now
please give some more suggestions
thanks once again
hi aditi.....
it has to work..
check this onces
<html:form action="/userLogin" onsubmit="return validateuserLoginForm(this);">
after changing the above line .run the jsp and check the generated source code in the browser of the userLogin.
you can find the generated javascript.
if it is coming means javascript is working..