The onchange attribute expects JavaScript. So you'd have to write a function to use ajax to make your request to /process_change.action.
--- d[-_-]b Beez > -----Original Message----- > From: Emi Lu [mailto:em...@encs.concordia.ca] > Sent: Thursday, August 11, 2011 11:16 AM > To: Struts Users Mailing List > Subject: how to make onchange in s:select to submit a form > and call a specific method in one action class > > Good morning, > > In struts2.2.3, how to submit a form to a predefined action? > > For example, > > (1) a.jsp > <s:select onchange="changeProcess" /> > > (2) Process.java > ... > public String change() > { > get Form values from a.jsp > database actions ... ... > return a.jsp; > } > > > I'd like to know: > =========================== > When values changed in s:select, how to submit the form and call > change() method in Process.java > > Thanks lot! > Emi > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org