remove -----Original Message----- From: Hani Suleiman <[EMAIL PROTECTED]> Sent: Nov 18, 2003 8:58 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Newbie - CDList.jsp
have a look at the webwork.examples.i18n.CDList class. That is the action class, so when the page makes a call to CDList, that automatically calls the getCDList method in that action class. The CDList is now iterated through and within the iterate block, the top of the value stack now has the current CD at the top, so when the propertytag tries to display 'album', the method called will be getAlbum() on the particular CD that the iterator now points at. On Nov 18, 2003, at 8:25 PM, Rajagopal. V wrote: > Hello > I just started looking at Webwork and checking out the > examples. One thing i noticed in cdlist.jsp is this > code > <webwork:iterator value="CDList"> > <option value="<webwork:property value="album"/>"> > <webwork:property value="album"/>, > <webwork:property value="artist"/>, > <webwork:property value="country"/>, > <webwork:text name="'price'" > value0="@pricer/computePrice(price)"/> > </option> > </webwork:iterator> > > CDList is actually a List of "CD" objects, but i > couldnt find anywhere in the code where this cast is > made back. So how does webwork know which object to > call when the getAlbum() is called? > > TIA > Raj > > __________________________________ > Do you Yahoo!? > Protect your identity with Yahoo! Mail AddressGuard > http://antispam.yahoo.com/whatsnewfree > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork