Getting option value in jsp: Urgent help will be appreciated

Hello All,

I am working on JSP. I will grade myself as beginner in JSP.

I am trying to solve since last 2 days, I just want to display the value of option tag, and not able to get it.

<table>

<tr>

<td>

<html:select name="ActionForm" property="overage">

<%

int i;

int[] arr1=new int[200];

for (i=0;i<=100;i=i+10)

{

arr1=i;

%>

<html:option value="/<%=i%>/"><%= arr1%></html:option>

<%}%>

</html:select>

</td>

</tr>

</table>

Please, ignore the syntactical error.

Now in above code I want to know what is being put up as value of option tag. By value I mean , I want see <html:option ]value="/<%=i%>/> . (Data marked in bold)

Your help will be appreciated. I tried couple of things such as getParameter(), get Attribute(), getOverage(). Some of it gave me value as "//", it skips the i variable.

I want to see what is being put up in value for every iteration of loop>

[1120 byte] By [Mokshaa] at [2007-11-26 20:59:13]
# 1
request.getParameter("overage");
jgalacambraa at 2007-7-10 2:29:30 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
I used that. It gave me this output ==> For input string: "//"' . I dont know why "i" value is not coming up.
Mokshaa at 2007-7-10 2:29:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
wierd thing
jgalacambraa at 2007-7-10 2:29:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4

Yeah I know. But thnx for the response.

I also got that error solved. you know what it was because of those bckslashes. i wrote it,

<html:option value="<%=i%>"><%=arr%> instead of

<html:option value="/<%=i%>/"><%=arr%>

and that worked perfectly. I wish I could have known this before. It would have saved me lot of time.

Mokshaa at 2007-7-10 2:29:31 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...