hi good morning,
in my application i had to do validation for cost i m doing server-side validations..i used regex for cost..but im not getting validated can any one help me out..here is the code
if i enter numbers it should take and also take decimal numbers such as '5,5.0,0.50' and if i enter alpha-numeric it should not take i had done the code change as follows
errors.number---enter only number
can you suggest me how to change my code according to my need..
i need is if i kept blank it should not throw error and also if i enter any thing other than numbers it should throw an error can any one suggest me how to do...
i didnt got your point..i tried using js..its working if i implement in struts2 in <field-validatio> im not getting.....i had done the same in reg ^[0-9]*\.?[0-9]+$
here is the code