Dear friends,
I am working with struts2.0 for the validation I am using this validator. Its working fine for the name. But I want to put two name in a same text box. But it is not allowing. It allows only one name without space. Now i want the key code for using space between the name.
So you want to allow characters and spaces in a name? Like would the name "Abc K Xyz" be valid? If it would, then you just have to include \\s in the expression to allow space characters i.e. [a-zA-Z\\s]+$ ...