Hi, Wielgus, Thanks!
Man, That sounds great! Actually I hope struts2 can provide us something like <s:submit action="Actionname.action?param=123123" /> or <s:submit action="Actionname.action" ><param name="name" value="value"></s:submit>. It's not the first time I got frustrated by such kind of problem. Actually I found struts2 can support <s:submit action="Actionname!methodname" />. the String can be parsed without any problem in the source code ~_~ Frank 2009/8/18 Paweł Wielgus <poulw...@gmail.com> > Hi Frank, > submit should be inside form, > and inside form You can add hidden > to add any information You like > to differ from which line/id/identificator this submit was pressed. > So the simplest way to achieve it is to add form for every row. > > Another solution is to use indexed properties with one form, > but that's another story. > > Best greetings, > Paweł Wielgus. > > > 2009/8/18 BlackKnight <wwwwar3...@gmail.com>: > > Hi, > > > > Just currious y struts didn't support <s:param> in <s:submit> > > > > I am having a problem: > > > > A list of controls are produced using iterator, user can remove each of > > them by clicking submit near each of them. > > > > If i use <s:url>, i can send the id of the row via <param>, but the data > > user has inputed will be lost! Also the iterator will be empty! > > > > If I use <s:submit> I have no way to know which row the control is > located! > > > > Are trying to modify the struts2 source code! but it's really really a > > mess for a beginer like me!! > > > > Any suggestions?! > > > > > > > > > > Frank > > > > --------------------------------------------------------------------- > > 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 > >