<tr>
<td>
<input type="image" src="<%=e.getPicpath() %>" width="200px" height="150px"/>
<input type="hidden" value="<%=e.getId()%>" name="eye"/>
<input type="hidden" name="action" value="eyepic" />
</td>
<td>
<input type="image" src="<%=e1.getPicpath() %>" width="200px" height="150px" />
<input type="hidden" value="<%=e1.getId()%> " name="eye1"/>
<input type="hidden" name="action" value="eyepic1" />
</td>
</tr>
往servlet传action的时候,默认的是第一个action,想过加onclick,但还是不行,求大神解答!
------解决思路----------------------
不是很明白你说的什么。
------解决思路----------------------
name 名字一样
------解决思路----------------------
用两个表单提交就行了
------解决思路----------------------
这个方法不错,或者submit的时候,自己提取数据然后提交
------解决思路----------------------
你在提交前,把表单的action属性值改一下就可以了,值你可以getElementBy...获取。