I have a pretty basic question that I think I know the answer to, but I want to be 
sure.

1) How do you build a form based upon lists of options from a database and also handle 
tracking the user's selections of those options at the same time.

For example:
In the database you have a list of color options that is built depending upon a model 
number. Now say you use the Struts form tags to build a group of radio buttons. Now 
when the user sees the form for that model they pick a color and submit the form. How 
is the selected color identified when sent to the server? What if some other part of 
the form is invalid and you need to re-display the form to the user and you want the 
selected color preserved? What do you do if you need to re-present the filled out form 
(complete with dynamic options) for editing at a later time?

To me you obviously do not want a separate JSP for each model. My current thinking is 
that you would have to have 2 properties in your form bean for each occurrence of this 
need. One property would be an array of the available options, and the other property 
would be the actual selected item. I think this would work fine if you knew ahead of 
time all of the occurrences. 

I really appreciate any help you can give me.


Stephen W. Gissendaner
Senior Application Engineer,
EPL

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

Reply via email to