Title: Message
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

Reply via email to