我有一个String [] []这是我的游戏桌(编码战舰)。我这样显示:
<%
String[][] field2 = master.getField(2);
request.setAttribute("field", field2);
%>
<div class=feldbeschreibung>Gegnerisches Feld</div><div class=feldbeschreibung2>Dein Feld</div>
<table class=player_field2>
<tbody>
<c:forEach items="${field}" var="row">
<tr>
<c:forEach items="${row}" var="item">
<td class="tdBox" onclick="attack(this, x, y)">
<span>${item}</span>
</td>
</c:forEach>
</tr>
</c:forEach>
</tbody>
</table>
我想要的是让我的方法攻击()&lt; - javascript 关于我点击的坐标。我可以像这样调用方法本身:但我忽略了我点击的坐标。顺便说一下,我对Java,Javascript,JSP和JTSL都很陌生(所有这些都使用了)。
谢谢你提前:)
答案 0 :(得分:0)
这是演示代码。
<bean id="testSettings" class="testing.framework.TestSettings">
<property name="testProperties">
<list>
<value>classpath:test.properties</value>
</list>
</property>
<property name="configProperties">
<list>
<value>classpath:config.properties</value>
</list>
</property>
</bean>