We have a field in GUI screen like which is nullable in DB , It should accept null values from UI page, if we give any values other than numbers or decimals it should display error "Enter numeric values".
Now the problem is if I didn’t give any value in that field it is storing null value in DB in my local windows system(i.e. when I run the application locally using Tomcat Server), after deploying in Weblogic server (which is running on Linux machine) if I try to insert null values into that field I am getting error "Enter numeric values", for validations
I have used below regular expression
^[1-9]\\d*(\\.\\d+)?$