• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with ajax implementation using Jquery

 
kranthi chamarthi
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to jquery. I am trying to implement ajax using Jquery. Following is my javascript code.

When i click on the button its giving me the alert popup with membername enterd but somehow the request is not passing to the servlet. Following is the servlet mapping in web.xml

Following is the servlet code

Please suggest me what can be the problem.
Thanks
Kranthi
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
USe a tool like Fiddler or Firebug and watch the XMLHttpRequest. Doe it go out? What status code does it return?

Eric
 
kranthi chamarthi
Ranch Hand
Posts: 95
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I modified

to

and it worked.
Thanks
Kranthi
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, using a valid URL is required.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic