atleast it is not call to my method also ..
What do you mean? Do you mean the code isn't getting called? Or is it getting called.
In your success function
success: function(response){
// we have the response
var userId= $('#userId').val();
var usersName= $('#usersName').val();
var username = $('#username').val();
var password = $('#password').val();
}
I am confused. Are those values ${} still there? What are you doing with the Response
String being returned by the method? Should you be returning the String value that you are returning? Maybe that is where the error occurs.
Also, did you check your console/logs on the serverside to see if there are any exceptions. I am sure if there is an error you can get more details about that error than just what you are showing in your alert.
Mark