i have one bean that bean contains string and integer values setter and getter method i am writen the validations integer variables and string variables sucessfully. but i am entered the values in jsp form integer place string values entered that time 500 error is retrived. how to write the Integer text boxes allow the strings the time does not fire the 500 error. only Retrive the Error messageas. i am using Pattern and matcher classes.