解决方案:
- SQL查出orderName(订单编号)字段
- JSP截取字段前八位
- td 加上title
参考代码:
<table border="1" width = "100%" height = "50">
<thead>
<tr>
<th>订单编号</th>
</tr>
</thead>
<tbody>
<c:forEach items="${couponsUsedlist}" var="coupons">
<tr>
<td title="${coupons.orderName}" >${fn:substring(coupons.orderName,0,8)}...... </td>
</tr>
</c:forEach>
</tbody>
<tfoot>
</tfoot>
</table>