dcsimg
Struts Validator Problem - argX parameters results in null
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   zzz_zzz
Posted On:   Monday, April 17, 2006 11:05 AM

Hi, i have the following entries in validation.xml and messages.properties. #Entry in validation.xml maxlength 5 #Entry in messages.properties errors.integer={0} must be an integer Validation works well, but the parameters e.g. {0} are replaced by null. Message on JSP: null must be an integer The Validator is able to load the common error message, but it seems like the parameter messages cannot be found. What could be the problem of this?? Thanks in advance    More>>



Hi,

i have the following entries in validation.xml and messages.properties.



			
#Entry in validation.xml




maxlength
5









#Entry in messages.properties

errors.integer={0} must be an integer




Validation works well, but the parameters e.g. {0} are replaced by null.



Message on JSP:

null must be an integer



The Validator is able to load the common error message, but it seems like the parameter messages cannot be found.


What could be the problem of this??


Thanks in advance


   <<Less

Re: Struts Validator Problem - argX parameters results in null

Posted By:   Anonymous  
Posted On:   Saturday, April 22, 2006 09:57 AM

Try updating to the latest Struts version. I had a similar problem and that worked for me.

Re: Struts Validator Problem - argX parameters results in null

Posted By:   Anonymous  
Posted On:   Friday, April 21, 2006 08:53 AM

hi,


This problem will come if the argument 0 u r passing i.e., key 'carsearch.form.zipcode' is not found in the properties file.


regards,


kalyan

About | Sitemap | Contact