How to use struts2 submit tag as button without submitting the form?

前端 未结 2 1513
再見小時候
再見小時候 2020-12-09 21:22

I am using Struts2 framework in my application, I have one button on my JSP page. That is


2条回答
  •  难免孤独
    2020-12-09 21:46

    If you are using s:submit tag the rendered HTML output is either input or button tag but the type is submit except for the image type. You can use the code to execute javascript onclick event that doesn't submit the form.

    
    

提交回复
热议问题