Hello Chuck,

comments below...

Monday, June 11, 2001, 9:46:56 PM, you wrote:

CS> Hi,

CS> I think I'm missing something here.  I have a bean that is available to my
CS> page in the request scope.  Within that I have another bean that has
CS> properties I want to display.  I'm trying to use the define tag to get a
CS> reference to the embedded bean and I'm getting the infamous:
CS> javax.servlet.jsp.JspException: No getter method for property homeAddress of
CS> bean policyHolderInfo

CS> Here's the code -
CS> In my bean policyHolderInfo bean attached to the request obj:

CS> public AddressInfo homeAddress;

CS> public AddressInfo
CS> getHomeAddress(AddressInfo homeAddress)

wrong here        ^^^^^^^^^^^^^^^^^^^^^^^^^

CS> {
CS>     return homeAddress;
CS> }

CS> public void
CS> setHomeAddress( AddressInfo homeAddress)
CS> {
CS>     this.homeAddress = homeAddress;
CS> }

CS> My jsp tag is:
CS> <bean:define id="policyHolderAddress" name="policyHolderInfo"
CS> property="homeAddress" />

CS> All other getters on the policyHolderInfo bean work just fine.

CS> Am I doing something wrong or is there another way to do this?  Any
CS> suggestions would be appreciated.
CS> Thanks,
CS> Chuck

Your property support must looks like -

public AddressInfo
getHomeAddress()
{
    return homeAddress;
}

public void
setHomeAddress( AddressInfo homeAddress)
{
    this.homeAddress = homeAddress;
}


-- 
Best regards,
 Oleg                            mailto:[EMAIL PROTECTED]


Reply via email to