Submitting data without clicking submit button
I am working on a project where a user gets some photos to s开发者_开发百科elect from. Now i want it to be such that he can directly click the photo and select it without need of any sort of submit button. An object corresponding to image is sent. How do i do this. Also i am doing it in struts2.
You can use
<input type="image" />
instead of
tag.
when rendering the images on browser
because, <input type="image" />
acts as a submit button in a form.
精彩评论