jquery使えば行けるのではないでしょうか?下記のページを参考にしてみると良いと思います。
参考ページ
html
1<html>
2 <head>
3 <script src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
4 <script>
5 $(function(){
6 $(".list td:not(td.imgLink)").click(function () {
7 var id = $(this).parent().attr("testId");
8 location.href = "${contextPath}/edit/" + id + "/";
9 });
10 });
11 </script>
12 <style type="text/css">
13 .list tr:hover td {
14 background:#FFF7CD;
15 color:#000000;
16 }
17 .list td{
18 padding:0.3em 1em;
19 cursor: pointer;
20 }
21 </style>
22 </head>
23 <body>
24 <table class="list">
25 <tr>
26 <th>ID</th>
27 <th>名前</th>
28 </tr>
29 <tr testId="1000">
30 <td>1000</td>
31 <td>松尾芭蕉</td>
32 </tr>
33 <tr testId="2000">
34 <td>2000</td>
35 <td>金子みすず</td>
36 </tr>
37 <tr testId="3000">
38 <td>3000</td>
39 <td>与謝野晶子</td>
40 </tr>
41 </body>
42</html>