【发布时间】:2018-09-25 09:09:48
【问题描述】:
我正在使用 MySQL、Java、JSP。如果出现如下错误,如何在不手动查看代码的情况下找到错误?该文件是.jsp。网页错误:
com.itextpdf.tool.xml.exceptions.RuntimeWorkerException:无效 找到嵌套标记 td,预期结束标记 br
strBuffer.append("<tr><td colspan=\"2\" ><strong>BlahVariable</strong>
</td>");
strBuffer.append("<td colspan=\"5\" >");
strBuffer.append("</td></tr><tr>");
strBuffer.append("<td colspan=\"2\" ><strong>BlahVariable</strong></td><td
colspan=\"5\" >");
if(BlahVariable.equals("Y") ||BlahVariable!=0)
strBuffer.append(BlahVariablez);
else
strBuffer.append("-");
strBuffer.append("</td></tr><tr>");
strBuffer.append("<td colspan=\"2\" ><strong>Blah blah <sup>♦</sup>
</strong></td>");
strBuffer.append("<td colspan=\"5\" >"+ BlahVariable+"</td></tr><tr>");
strBuffer.append("<td colspan=\"2\" ><strong>BlahVariable</strong></td>");
strBuffer.append("<td colspan=\"5\" >");
【问题讨论】:
-
最后一个
</tr>不见了。 -
嗯,手动查看代码是我们在这项业务中所做工作的 90%。没有办法(至少这次次)。