wood burning stoves
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

using query string

Astha Sharma
Ranch Hand

Joined: Oct 15, 2011
Posts: 250

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?

Astha - OCPJP 6 (90%)
Swastik Dey

Joined: Jan 08, 2009
Posts: 1584

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

I agree. Here's the link: http://aspose.com/file-tools
subject: using query string
It's not a secret anymore!