Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using query string

 
Astha Sharma
Ranch Hand
Posts: 250
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am making a JSP with a counter using query string, so that on clicking button next, the counter increases and on clicking button previous, the counter decreases. This is my JSP page-

The counter value shown is 0 every time on whatever button I click. Even the counter parameter doesn't get added in the URL.
Please check the code and tell me what I am doing wrong?
Thanks
 
Swastik Dey
Rancher
Posts: 1604
5
Android Java Java ME
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Probably you should not write java codes in jsp, its a very old practice. However the following changes should resolve your issue.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic