• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

[ajax and servlet] Servlet could not retrieve parameters from ajax xmlHttp.send(params)

 
Ranch Hand
Posts: 35
Eclipse IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi eveyone,

I was trying to send parameters through xmlHttp.send(params) and process them in my servlet class.
However, I could not retrieve those parameters in the servlet class by using request.getParameter("paramName");

here is my code in javascripts(ajax part)


and here is the code in my servlet class



now I am able to get and display "hahaha" in my webpage ,but all the parameters returned are all nulls.


any comments will be grateful.

thanks very much in advance
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Use Firebug in Firefox to inspect the request that you are sending. Is it correct?
 
reply
    Bookmark Topic Watch Topic
  • New Topic