> I don't appear to have to declare "customers" in the form, but 
> if I don't declare "suburb", I get an error... what is the difference?

'suburb' is a form property, Struts will call get/setSuburb as it
populates the Form Bean and generates the HTML.

'customers' is a collection of things to be used to populate a select
list.  It may or may not be a property of this particular form.  It can
live anywhere-- request scope, application scope, session scope.  I
don't consider the contents of a select list to be a "property" of the
form, so I don't put it in the form bean.

The way you're doing it is fine.  If 'customers' never changes, consider
using Application scope (a Context attribute).  If it varies by user,
session scope might work for you.  That way you don't have to put it in
request scope repeatedly.

-- 
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University, PA, IRM 



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to