开发者

Submitting data without clicking submit button

开发者 https://www.devze.com 2023-01-31 16:43 出处:网络
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 bu

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消