I have added public getters and setters methods. but how to write the struts tag <s:url id="url" action="myAction!list.action"> <s:param name="page.index"> 12</s:param> </s:url>
can I use <s:param name="page.index"> to set model properties? public class Page{ public int index; public int next; ///get and set } public class myAction{ private Page page; //get and set public String excute(){ return SUCCESS; } } --BestRegards, Mead On Mon, Oct 13, 2008 at 4:15 PM, Lukasz Lenart <[EMAIL PROTECTED] > wrote: > 2008/10/13 Mead Lai <[EMAIL PROTECTED]>: > > How to pass params with 'URL herf'? > > well, the params data wanne pass to Model's property. > > such, I have a "page" object in myAction, with get and set method. > > > > public class myAction{ > > private Page page; > > } > > > > public class Page{ > > public int index; > > public int next; > > } > > > Add public getters and setters instead of public properties > > > Regards > -- > Lukasz > http://www.lenart.org.pl/ > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >