当我单击表格行时,我想调用 sevlet。我尝试了几种方法,但没有一个是正确的。这是我的jsp表和我尝试过的:
<th>DESCRIPTION</th>
<th>PRICE</th>
<th>IMAGE</th>
</tr>
</thead>
<c:forEach var="employee" items="${allads}">
<tr onclick="document.location ="datail_ad_viewer?page=${employee.brand}";">
<td><a href="datail_ad_viewer?page=${1}"></a></td>
<td>${employee.description}<br/>${employee.location}<br/>${employee.brand} </td>
<td>${employee.price}</td>
<td width="150"><center><img height="80" width="120" onerror="this.src='http://localhost:8080/images/default.png';" src=${employee.imageurl} /> </center></td>
</tr>
</c:forEach>
</table>