java.lang.NumberFormatException: For input string: 亟需帮助
--------------------编程问答-------------------- 你输入的字符串是repairTorepairId想把它转成Int肯定报错啊 --------------------编程问答-------------------- For input string: "repairTorepairId"不能转换为数字 --------------------编程问答--------------------
提示是双表查询,你知道是为什么吗
<logic:iterate id="repairForm" collection="<%=list%>" indexId="number">--------------------编程问答--------------------
<bean:define id="repairId" name="repairForm"/>
<tr align="center" bgcolor="#FFFFFF">
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairTorepairId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairStaffId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairRate}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairDate}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairFeedback}</div></td>
<td><a href="trepair.do?method=queryOne&repairId=${repairForm[0].repairId}" target="right">
详情</a>|<a href="trepair.do?method=forwardUpdate&repairId=${repairForm.repairId}" target="right">更新</a></td>
</tr>
</logic:iterate>
提示是双表查询,你知道是为什么吗
<logic:iterate id="repairForm" collection="<%=list%>" indexId="number">--------------------编程问答-------------------- 看需要的值是否是 ${repairForm.repairTorepairId}这个值,看下这个值是多少,是否是数字,是的话那就说明你传递的时候出错了,没有拿到值,而直接给了id过去了 --------------------编程问答-------------------- ${repairForm.repairTorepairId} 这个值是什么,是不是传过去一个字符串“repairTorepairId” --------------------编程问答-------------------- 看下 ${repairForm.repairTorepairId} 是多少。格式化错误了。 --------------------编程问答-------------------- 转型错误啊 你是不是输入字符串去转number类型了 肯定转不动的啊..
<bean:define id="repairId" name="repairForm"/>
<tr align="center" bgcolor="#FFFFFF">
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairTorepairId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairStaffId}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairRate}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairDate}</div></td>
<td height="18" bgcolor="#FFFFFF"><div align="center" class=" STYLE1">${repairForm.repairFeedback}</div></td>
<td><a href="trepair.do?method=queryOne&repairId=${repairForm[0].repairId}" target="right">
详情</a>|<a href="trepair.do?method=forwardUpdate&repairId=${repairForm.repairId}" target="right">更新</a></td>
</tr>
</logic:iterate>
补充:Java , Web 开发