日期:2014-05-18  浏览次数:20551 次

struts图片按钮问题
请问struts中多个图片按钮提交同一个表单,应该如何处理?

------解决方案--------------------
e.g.
<html:image property= "imageSubmit " value= "image_save "> </html:image>
如果用户点击了这个图片submit,你可以在后台通过request.getParameter( "imageSubmit ");得到image_save的值
------解决方案--------------------
用JS事件提交。
------解决方案--------------------
This tag is only valid when nested inside a form tag body.
------解决方案--------------------
javascript: onclick=form.submit()