<body>
<%
int i=1;
int j=1;
%>
<%
int time[]={1,2,3,4,5,6,7,8,9,10,11};
%>
<form id=form1 action="js" method="post" >
<table border="1">
<tr>
<td>时段</td>
<% for(i=0;i<11;i++)
{ %>
<td ><%=time[i] %></td>
<% } %>
</tr>
<tr>
<td>预测量</td>
<% for(i=0;i<11;i++)
{ %>
<td height=8><input type="text" name=ycl style="width:60px"></td>
<% } %>
</tr>
<tr>
<td>合同量</td>
<% for(i=0;i<11;i++)
{ %>
<td height=8><input type="text" name=htl style="width:60px"></td>
<% } %>
</tr>
</table>
<input type="submit" value="确定">
</form>
</body>
我想要做的是把循环输出的预测量跟合同量这两行里面的文本内容分别提取放到数组里,再提交给servlet 进行相应的计算,本人是这方面的小白,求高手指导,可加QQ:761706897 非常感谢~