<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'gettr.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script language="javascript">
function Alert(_this){
var objTR=_this.parentNode.parentNode
alert("本行号= "+objTR.rowIndex)
var obj=objTR.getElementsByTagName("td")
for (var i=0;i<obj.length;i++)
alert(obj[i].innerHTML)
}
</script>
</head>
<body>
<table border="1" width="37%">
<tr>
<td width="63">name</td>
<td width="68">x1</td>
<td width="62">x2</td>
<td width="75">x3</td>
<td>x4</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name1</a></td>
<td width="68">11</td>
<td width="62">12</td>
<td width="75">13</td>
<td>14</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name2</a></td>
<td width="68">21</td>
<td width="62">22</td>
<td width="75">23</td>
<td>24</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name3</a></td>
<td width="68">31</td>
<td width="62">32</td>
<td width="75">33</td>
<td>34</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name4</a></td>
<td width="68">41</td>
<td width="62">42</td>
<td width="75">43</td>
<td>44</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name5</a></td>
<td width="68">51</td>
<td width="62">52</td>
<td width="75">53</td>
<td>54</td>
</tr>
<tr>
<td width="63"><a href=### οnclick="Alert(this)">name6</a></td>
<td width="68">61</td>
<td width="62">62</td>
<td width="75">63</td>
<td>64</td>
</tr>
</table>
</body>
</html>