Html 如何传递多个文本字段';是否使用超链接将同一行中的更新值发送给控制器?

Html 如何传递多个文本字段';是否使用超链接将同一行中的更新值发送给控制器?,html,hyperlink,textbox,html-table,Html,Hyperlink,Textbox,Html Table,我有一个jsp页面,其中显示了jsp中表中的一些记录。在这个表(jsp)中,每行有一列,我在其中放置了“编辑”超链接。如果我正在更新同一表中文本字段中的值。然后单击该链接后,我想在控制器中获取更新的文本字段值。 有人能告诉我如何实现这个目标吗 <table border="2"> <tr> <th>Student Id</th> <th>First Name</th> <th>Last N

我有一个jsp页面,其中显示了jsp中表中的一些记录。在这个表(jsp)中,每行有一列,我在其中放置了“编辑”超链接。如果我正在更新同一表中文本字段中的值。然后单击该链接后,我想在控制器中获取更新的文本字段值。 有人能告诉我如何实现这个目标吗

<table border="2">
<tr>
    <th>Student Id</th>
    <th>First Name</th>
    <th>Last Name</th>
    <th>Age</th>
    <th>Contact No.</th>
    <th>Click here to edit</th>
    <th>Click here to save</th>
</tr>
<c:forEach items="${list}" var="currentStudent">
<%!int count = 0; %>
<tr>
    <td> 
        <input name = "sid" type="text" value= "${currentStudent.studentId}" size="10" />
    </td>
    <td>  
        <input id = "fn<%= count%>" name = "fn" type="text" value= "${currentStudent.firstName}" size="10"/>
    </td>   
    <td> 
        <input id = "ln<%= count%>" name = "ln" type="text" value= "${currentStudent.lastName}" size="10"/> 
    </td>
    <td>  
        <input id = "age<%= count%>" name = "age" type="text" value= "${currentStudent.age}" size="10"/>
    </td>    
    <td>
        <input id = "mno<%= count%>" name = "mno" type="text" value= "${currentStudent.mobileNo}" size="10"/>
    </td>
    <td> 
        <input name = "edit" type="button" value= "Edit" size="100" onclick="enableFields"/>
    </td>
    <td>
        <a id = "link" href="modifystudent?sid=${currentStudent.studentId}&fn=_&ln=_&age=_mno">Save</a>
    </td>
</tr>
<%count++; %>
</c:forEach>
</table>`

学生证
名字
姓
年龄
联络电话。
单击此处进行编辑
单击此处保存
`
我把u放在需要插入逻辑的地方,以获取同一行文本字段的值


有人能提出任何逻辑吗?

请考虑选择你的代码,并按Ctrl +K.I.DI.格式化它。不,你没有。你将有更多的机会来回答你的问题,如果你表现得很好和清晰。任何人都可以尝试回答上面提到的问题吗?请考虑选择你的代码,并通过按Ctrl +K.Idi.格式化它。不,你没有。你将有更多的机会来回答你的问题,如果你表现得很好和清晰。任何人都可以尝试回答上面提到的问题吗?请考虑选择你的代码,并通过按Ctrl +K.Idi.格式化它。不,你没有。如果你把问题表达得清楚明了,你会有更多的机会得到答案。有人能回答上面提到的问题吗?