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>

