• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

One Bean nested in another.

 
Chris Donald
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I have 2 beans-the main one is the Account bean.I also have a bean called BillingAddress which is set into the Account Bean i.e:

public BillingAddress getBillingAddress() {
return billingAddress;
}
public void setBillingAddress(BillingAddress billingAddress) {
this.billingAddress = billingAddress;
}
Now I have 2 jsps-The first one is the Account.jsp.Once the user fills this up,he would be taken to the billingaddress.jsp.I have used the AbstractWizardController for this.Unfortunately,my second page is throwing errors.I am not sure how one references the second bean billingAddress in billingAddress.jsp

Any advice is appreciated.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic