Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to get Int value from request.getParameter()?

843836Jun 28 2005 — edited Jun 28 2005
Hi all,

I have a integer value which is passed from one page to another page.
i am geting this value in the next page using

request.getParameter().

Eg.
Suppose value of "i" in page1 is 32, i pass this as hidden variable to next page.
<input type="hidden" Value="<%=i%>" NAME="limit">
in page2, i fethch this value to a variable by name "limit"
String limit=request.getParameter("limit");

but, since value stored in limit is int, i can't assign it to string.
i can't use request.getParameter for int values.

How to solve my problem.
I know it is simple,
Pls. help me

Regards
ASh


String limit=request.getParameter("limit");
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2005
Added on Jun 28 2005
2 comments
1,259 views