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.
To avoid the extra spaces in submissions I use a Filter and RequestWrapper combination to trim all request parameter values. A submission of " " would get trimmed to "" and "88 " would get trimmed to "88". It really does the trick.
Note that my solution only takes care of leading and trailing spaces but the idea might help you to come up with a different kind of solution to the problem. [ October 25, 2005: Message edited by: Marc Peabody ]