I'm using struts 2 application where
< s: form name="myForm">
< s:include value = "test.jsp" >< / s:include>
< img src="../../images/next.png" onclick="fnNext();"/>
< / s:form>
test.jsp contains a table with id = "my table"
次に、JavaScript関数fnNext()でテーブルのIDをどのように使用するか: