getting Integers from the query string
I have a maddeningly simple question I can't seem to get resolved with the resources to hand.
I've got a simple, simple task. I've got a page "details.asp" which gives details about an item. There are 18 such items. I'm making a simple NEXT/PREV set of buttons, and want to have it just go to the next item.
If I have details.jsp?id=1, I have code which says:
String theID;
theID = request.getParameter("id");
This makes "id" a string, however, and I can't increment it or do anything with it. How do I make a query string element into an integer which I can increment?
Any help would be great.
--tad
Thaddeus G. Reeves
Internet Dissemination
Church of Scientology Int'l
__________________
Thaddeus G. Reeves
Internet Dissemination
Church of Scientology Int\'l
|