Post data from int to String

Hi when i post one values use form in my a.jsp to b.jsp the some of values data type is int and then when the second page b.jsp to get request.getParameter in int but , the error message indicate that ..

how can i convert int to string then i use

Integer rownum = (Integer)request.getParameter("rownum");

this method but still does not work

<%int rownum = 10; %>

<%for(int ii =0; ii< rownum; ii++){%>

<tr bgcolor="#EBF5F5">

<td align="left" bgcolor="#FFFFFF" class="content"> 孮慻暘椶柤鈏丗

<input name="updategroup<%=ii%>" type="text" size="30" value="<%=groupanmes[ii]%>"/>

<!--<a href="groupupdate.jsp?updategroup=<%=groupanmes[ii]%>">

<img src="../images/blk/edit-small.gif" alt="modify" width="30" height="20" border="0" align="absmiddle" />

</a>

<img src="../images/blk/edit-small.gif" alt="modify" width="30" height="20" border="0" align="absmiddle" />

-->丂

<input type="submit" value="submit"/>

</td>

<td align="center" bgcolor="#FFFFFF" class="content"><a href="groupdelete.jsp?deletegroup=<%=groupanmes[ii]%>"><img src="../images/blk/del-small.gif" alt="delete" width="30" height="20" border="0" />

</a>

</td>

</tr>

<%}%>

Integer rownum = (Integer)request.getParameter("rownum");

found: java.lang.String

required: java.lang.Integer

Integer rownum = (Integer)request.getParameter("rownum");

[2606 byte] By [roger5089a] at [2007-11-27 6:36:35]
# 1
hi,try this wayint i = Integer.parseInt((String)request.getParameter("number"));Bala
art84a at 2007-7-12 18:04:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
sorry still does not work
roger5089a at 2007-7-12 18:04:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
thank's it work
roger5089a at 2007-7-12 18:04:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
what pblm post the code.Bala
art84a at 2007-7-12 18:04:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...