hi jason and dick, thanks, it worked... i did try it before, but i forgot to instantiate the b class, doh :-)
sincerely morten wilken >-- Original Message -- >Subject: RE: [OS-webwork] 2 beans with same method names >From: "Jason Carreira" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Reply-To: [EMAIL PROTECTED] >Date: Mon, 17 Feb 2003 11:16:44 -0800 > > >Did you try : > ><form....> > <input type="text" name="name" value="<webwork:property >value="name"/>"/> > <input type="text" name="b/name" value="<webwork:property >value="b/name"/>"/> ></form> >? > > -----Original Message----- > From: Morten Wilken [mailto:[EMAIL PROTECTED]] > Sent: Monday, February 17, 2003 12:10 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] 2 beans with same method names > > > hi all, > > how do i set up the following scenario: > > i have a bean a with a reference to bean b, so i have > > a.getB() and a.setB() > > i also have > > a.get/setName() and b.get/setName() > > if i then have a form where i need to have input fields for both >name fields > > <form....> > <input type="text" name="??" value="<webwork:property >value="name"/>"/> > > <input type="text" name="??" value="<webwork:property >value="b/name"/>"/> > </form> > > what do i fill in instead of the ??'s to get the bean properties >set properly? > > the example that comes with ww only deals with the case where >the fieldnames differ > > sincerely > morten wilken > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork