hai,
How to retieve value of a variable from
JSP to
SERVLET.
In this program i need to retrieve value of rows and columns to servlet
<html>
<body text="black" >
<form name="pp" action="./updateinbox" method="post">
<br><br><br><br><br><br><br><br><br><br><br>
<p>
<%
Integer rows=(Integer)request.getAttribute("rows");
Integer cols=(Integer)request.getAttribute("cols");
%>
for(int i=0;i<rows;i++)
{
%>
<tr>
<%
for(int j=1;j<=cols;j++)
{%>
<td>  
<%=request.getAttribute("arr["+i+"]["+j+"]")%>
</td>
<%}%>
<td><select name="aa[<%=i%>]">
<option>accept</option>
<option>Reject</option></select>
</td>
</tr>
<% } %>
</table>
<input type="submit" value="Submit">
</form>
</body>
</html>
[ March 23, 2007: Message edited by: Bear Bibeault ]