Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

sending parameter through query string-post method  RSS feed

 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Jsp,..

when I try to get the parameter pagenumber in post method of
Report servlet it shows the null.
[code]
String pagenum = request.getParameter("pageNumber");

can you please tell,how to get the value of the parameter in the post method of servlet?

thanks
indu
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check for case sensitivity
 
indu yeturu
Ranch Hand
Posts: 123
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I typed it incorrectly here....


its not working...
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just realized that is a A HREF. Are you clicking that ? That would be a GET request not a POST request. It would not matter anywho since you should be able to access the parameter. What does request.getParameterNames() return ?
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please provide answers for the other questions too. That will help us help you
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!