This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
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]+$ ...