Onchange event in Struts2
问题 How to call action on onchange event with select option in struts2. Here is my code and how can I integrate with On change event. <s:select name="menuItem" list="menuItems" listKey="menuItemID" listValue="menuItemName" headerValue="--MenuItems--" cssClass="selectbox_bg2" id="select" /> Can anyone please provide an example.. Thanks, 回答1: There is no difference in how you apply onchange or any other javascript event handler to struts tag as compared to regular HTML tags. Struts2 select Tag Ref