aspose file tools*
The moose likes JSP and the fly likes using query string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "using query string" Watch "using query string" New topic
Author

using query string

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 249

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


Astha - OCPJP 6 (90%)
Swastik Dey
Rancher

Joined: Jan 08, 2009
Posts: 1477
    
    6

Probably you should not write java codes in jsp, its a very old practice. However the following changes should resolve your issue.



Swastik
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: using query string