开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜