Anyone, Please! A table with column of dropdowns

2003-07-24 Thread atta-ur rehman
Dear All, I've been trying to for last three days to do this. Basically I've an HTML table one of its column gives user to select Block Type. Block Type is a list of reference values that are shown in an html:select element. Now to handle this situation I've created String[] getter/setter for

RE: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread Wendy Smoak
ATTA wrote: Basically I've an HTML table one of its column gives user to select Block Type. Block Type is a list of reference values that are shown in an html:select element. Now to handle this situation I've created String[] getter/setter for block type on the Form object. When i submit

Re: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread atta-ur rehman
Sure, I can. And thanks for replying! I've attached the JSP and Form class. And yes, i thought that i might need indexed properties and did add the index property getter/setter to the Form. but i cannot seem to submit the form with indexed property getter/setter. and by the way, we're using

RE: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread Wendy Smoak
ATTA wrote: and by the way, we're using struts 1.0.2. I don't know if indexed properties work with 1.0, but I think that's what you need to use. Otherwise, how do you expect Struts to know which of the multiple values in your String[] goes with each of the select lists? -- Wendy Smoak

Re: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread atta-ur rehman
yes, that's a good question. i guess the same way struts passes all the correct selections to the Form object on submission ;) while we are on the subject, could you please refer me some further readings on Indexed Properties and how it could help me in this case? Thanks for your time. ATTA

RE: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread Wendy Smoak
yes, that's a good question. i guess the same way struts passes all the correct selections to the Form object on submission ;) By magic. ;) But in this case, who knows what order the request parameters came in, who knows what order they are stored in the String[], so it's fairly impossible to

Re: Anyone, Please! A table with column of dropdowns

2003-07-24 Thread atta-ur rehman
so far i've found these two link related: http://www.husted.com/struts/tips/006.html http://jakarta.apache.org/struts/faqs/indexedprops.html and i'm still lost! i'm kind of confused on this. i would see this as a very frequent occuring 'problem' in data-driven web apps and by the response of my