Where is your code for BaseActionS2? Glad to know Im not the only person who watches BBC!
Martin ______________________________________________ Disclaimer and confidentiality note This message is confidential and may be privileged. If you are not the intended recipient, we kindly ask you to please inform the sender. Any unauthorised dissemination or copying hereof is prohibited. This message serves for information purposes only and shall not have any legally binding effect. Given that e-mails can easily be subject to manipulation, we can not accept any liability for the content provided. > Date: Tue, 31 Mar 2009 14:19:48 -0400 > Subject: Re: jsp page not display data when using ModelDriven---class can get > parameter from jsp file > From: musa...@gmail.com > To: user@struts.apache.org > > The answer is 42. If you explain what the problem is, the answer might vary. > > musachy > > 2009/3/31 Junhua gao <junhua...@yahoo.com.cn>: > > > > public class SortTiersAction extends BaseActionS2 implements ModelDriven { > > SortTierService sorttierservice = new SortTierService(); > > private SortTierVO sorttiervo = new SortTierVO(); > > public void setModel(SortTierVO sorttiervo) { > > this.sorttiervo = sorttiervo; > > } > > public Object getModel() { > > return this.sorttiervo; > > } > > public String execute() throws DefaultException { > > > > //do someting here; > > > > } > > > > > > in struts.xml file > > > > <action name="SortTierQueryAction" > > class="com.qic.system.action.SortTiersAction"> > > <result name="success">/test.jsp</result> > > </action> > > > > > > > > jsp file > > > > <s:form id="sorttierform" action="SortTiersAction"> > > <select name="sorttierID" id="sorttierSelectID" size="12"/ width="135"><br> > > <s:textfield name="sorttierName" id="sorttierName" label="Name:"/><br> > > > > <s:textfield name="sorttierRate" id="sorttierRate" label="Rate:"/><br> > > <s:textfield name="sorttierRatecase" id="sorttierRatecase" label="Rate > > Case:"/> > > <s:checkbox name="sorttierActive" id="sorttierActive" label="Active?"/> > > <s:submit value="Save"/> > > </s:form> > > > > > > > > ___________________________________________________________ > > 好玩贺卡等你发,邮箱贺卡全新上线! > > http://card.mail.cn.yahoo.com/ > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > -- > "Hey you! Would you help me to carry the stone?" Pink Floyd > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > _________________________________________________________________ Quick access to Windows Live and your favorite MSN content with Internet Explorer 8. http://ie8.msn.com/microsoft/internet-explorer-8/en-us/ie8.aspx?ocid=B037MSN55C0701A