I am using gethod getParameter() for getting parameters from query string, but I think this method is not fetching parameters in my code. getParameter() should return null in first request and value of counter i.e. 1 or -1 in second request, but it is returning null in second request also. Need help, please check my code.
I am not getting you. Please tell me how can i show you that?
This is the content of output page-
0 next previous
next and previous are links to the same jsp page with parameters counter=<%=count+1%> and counter=<%=count-1%> respectively.