Hi,
I have a very simple search form where user can search by entering either id or by name. The id takes an int value and the name takes a string value. I am using Spring validator.
The problem I am facing is that if I keep the id field blank and supply the name filed value it is throwing typemismatch error. But the user can enter either id or filename.
How to solve this issue.