Imagine a simple Model 2 web-app that allows user to search an
employee database.  There are 3 steps in this process (excluding
error handling).

1) User enters name to search for (ie. "Smith")
2) All the matching employees are displayed in a list of names (first
and last name).  The user click on one of the names (or a button
beside the name)
3) The entire employee information now would appear.

I think I under how to implement the processing between step 2 and
step 3.  Clicking on one of the names could send the request to a
servlet.  Parameters like an employee number could be part of the URL
request.  The servlet would use the request parameters to query the
end database.  The results from database would be placed into an
Employee bean that is sent to a JSP page for display (step 3).

But how do you use beans to perform step #2?  Are the results of the
database query stored into a kinda of "EmployeeSearchResults" bean
that would allow multiple values?  Or could an enumeration of
Employee beans be used?

The 0.92 spec discusses multi-value bean properties.  It seems to me
that there has to be an EmployeeSearchResults bean with multi-value
properties (String[] getFirstNames(), String[] getLastNames(), etc).
After querying the database, the servlet would create this bean and
set these multi-values properties from the database results.  The
bean then be past to a JSP page to display using multiple LOOP
statements.

D J

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to