I want to have an HTML page called SignUp.html and a servlet called CheckValidation.java
now there is a textBox in HTML called UserName.
CheckValidation just check whether the username the user entered is available or not. it have the connection with database and if the username is already present in the database then it must return that the usename is not available.
i want that UserName text onBlur event call that servlet and check the availability of username and write it in the lable next to username.
i can put tha servlet in onBlur event of the username but the problem is that how the servlet will retrun the value to that html??
Can a Servlet return any value to an HTML page? if yes then how can the html page can get it. ? if no then please suggest me any other way to do this.