JS script
<SCRIPT type = "text/JavaScript">
Function modify (ID)
{
Location. Replace ("<% = basepath %> <s: URL value = 'stu _ tomodify? Id = '/> "+ id );
}
Function add ()
{
Location. Replace ("<% = basepath %> <s: URL value = 'stu _ toadd'/> ");
}
</SCRIPT>
JSP page
<S: iterator value = "stulist. datas" Var = "Stu" status = "Index">
<Tr
Onmouseover = "This. style. backgroundcolor = '# dbe4ff'; this. style. cursor = 'hand '"
Onmouseout = "This. style. backgroundcolor = '# ffff'; this. style. cursor = 'default '"
Ondblclick = "Modify (<s: property value =" # Stu. stuid "/>)">
<TD>
<S: checkbox name = "stuids" fieldvalue = "% {# Stu. stuid}"/>
</TD>
<TD>
<S: property value = "# Stu. stuid"/>
</TD>
<TD>
<S: property value = "# Stu. stuname"/>
</TD>
<TD>
<S: If test = "# Stu. stusex = 1"> male </S: If>
<S: else> female </S: else>
</TD>
<TD>
<S: property value = "# Stu. stuage"/>
</TD>
<TD>
<S: Date name = "# Stu. stubirth" format = "mm DD, YYYY"/>
</TD>
<TD>
& Nbsp;
<S: property value = "# Stu. classes. classname"/>
</TD>
<TD>
<S: If test = "# Stu. stustatus = 1"> active </S: If>
<S: else> resign </S: else>
</TD>
<TD>
<A href = 'stu _ Todel? Id = <s: property value = "# Stu. stuid"/> '> Delete </a>// Normal Mode
</TD>
</Tr>
</S: iterator>