AnthonyGeorge
Technical User
I have a difficult problem with no idea how to solve it.
The problem is as follows at the moment I have the following code
while(rs.next())
{
%> <form name="setlimits" method=POST action="controlservlet">
<tr>
<td>
<input type="text" name="new_limit" size=10 value="0" >
<input type="hidden" name="index" value="<%= rs.getString("index") %>">
<td>
<tr>
<tr>
<input type="submit" value="Amend Limit">
</form>
<tr>
<%
}
When I press submit the control servlet is called and two parameters passed to it new_limit and a corresponding index.
index = request.getParameter(“index”);
new_limit = request.getParmeter(“new_limit”);
This allows me to update a table row with the new_limit in the database where index = index.
What I have now been asked to do is supply a submit all button, when this button is pressed I should pass to the control servlet all the new limits with all the corresponding indexs.
Is this possible, I can not see any examples of code I could copy.
Thanks Tony
The problem is as follows at the moment I have the following code
while(rs.next())
{
%> <form name="setlimits" method=POST action="controlservlet">
<tr>
<td>
<input type="text" name="new_limit" size=10 value="0" >
<input type="hidden" name="index" value="<%= rs.getString("index") %>">
<td>
<tr>
<tr>
<input type="submit" value="Amend Limit">
</form>
<tr>
<%
}
When I press submit the control servlet is called and two parameters passed to it new_limit and a corresponding index.
index = request.getParameter(“index”);
new_limit = request.getParmeter(“new_limit”);
This allows me to update a table row with the new_limit in the database where index = index.
What I have now been asked to do is supply a submit all button, when this button is pressed I should pass to the control servlet all the new limits with all the corresponding indexs.
Is this possible, I can not see any examples of code I could copy.
Thanks Tony