If you want to perform checks to the entered data as soon as it is entered, then you have only two options:
1. have an applet (slow to load and requires that the client installs a JRE).
2. Javascript (no great overheads in loading and client doesn't need to install anything extra).
A servlet or JSP can process only when the client hits submit.
[Message sent by forum member 'nasradu8']
http://forums.java.net/jive/thread.jspa?messageID=397435