Below is an example to describe a design problem I am having

Lets say I have a customer.jsp that displays surname, first name etc.
customer.jsp includes address.jsp.
Another Jsp, phone.jsp is included 3 times within customer.jsp, allowing the
user to enter up to 3 phone numbers for a customer.

The customer details are stored in a bean --> CustomerBean
CustomerBean has a few methods for getting the details. The details are
returned as XML

String getCustomer()
String getAddress()
String getPhones()

Now I need to somehow let each phone.jsp know what phone number to display.
My main problem is that phone.jsp can call customerBean.getPhones() but
doesnt know what phone numbers have already been displayed by other
'instances' of phone.jsp included on the same page.

I would rather have one phone.jsp included on a page multiple times rather
than have phone1.jsp, phone2.jsp etc.

Anyone have a solution to this problem?

Thanks.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to