struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jannik Nørgaard Steen ...@digitalzone.dk>
Subject Question about populating beans with form-data..
Date Wed, 04 Oct 2000 07:27:09 GMT
Hi,

we're developing a web application, were we have a number of beans
instantiated inside the Servlet container with data from some EJB's. Then
these beans are used with <struts:iterate> and other Struts tags to present
the user with
various selects and text in a web browser.

Our problem is this:

We have some items on display in the webbrowser. Every item has some
identical selects attached.
How do we populate a ActionForm bean or a other bean with data from the form
submitted, in the case that the form contains an unknown number of selects ?

To my knowledge it should not be possible as reflection is used to populate
beans. Therefore we cannot know the number of methods (and method names) to
include in our beans.

Is this a common problem or is it bad design ?

Med venlig hilsen/Best Regards
-----------------------------------------------
Jannik Nørgaard Steen
Software Developer
Digital Zone International

http://www.digitalzone.dk
mailto:js@digitalzone.dk
-----------------------------------------------



Mime
View raw message