Iam completely new to AJAX. Iam working on a web application using
Struts, Spring and Hibernate. On the registeration page, there is button, on click of that it has to validate whether the username entered by the new user is already exists in the database( ms sql server 2005) or not.
But the problem is that AJAX is not getting called on the click of "Check Availability" button. I think there is some problem on URL. Because it is not able to enter into "AJAXCheckUserServlet.java" class since nothing is happening.
Following is my applicationContext.xml :-
struts-config.xml:-
web.xml:-
register.jsp:-
AJAXCheckUserServlet.java:-
The bolded line above in the code(register.jsp) has some problem i think because javascript alert "1" is not coming. But iam getting the alert "ein".
Please help me... I don't know what is happening inside actually and where i went wrong.
I would really appreciate your help.
Thanks in advance.