Error message is not getting displayed while using validator framework.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sa_pa
Posted On:   Monday, May 23, 2005 03:42 PM

Hi all,

I am using validator framework to validate a field. I am using predefined "required". Even if I keep that field empty, error message in not displayed.


Where am I making mistake?

thanks

Re: Error message is not getting displayed while using validator framework.

Posted By:   alan_do  
Posted On:   Monday, May 23, 2005 04:28 PM

there are many reasons...


1. check that you have included in your display page (and make sure the tag-lib uri is declared)


2. make sure you're using the right validator-rules.xml for your version of struts (1.2 requires the definitions to use ActionMessages instead of ActionErrors).


3. make sure your struts-config.xml contains the plugin definitions for validator


4. make sure your error 'errors.require={0} is required' is defined in your ApplicationResources.properties

About | Sitemap | Contact