Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AJAX POST Request in Jsp giving null parameters

 
Anuj Batra
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi ,
i am trying to make a post request to a jsp page using ajax by using jquery method.

in test1.jsp i am simply doing

it is showing as null even i checked in firebug the request contains the post parameters it is not coming in jsp page ?
but if i use the get method

everything seems perfect
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65116
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you never should post to a JSP page, but I can't see any reason why that shouldn't work.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic