You could write lots of jsp code to handle it: <logic:present name="qty1"> <html:text name="qty1"/><br> </logic:present> <logic:present name="qty2"> <html:text name="qty2"/><br> </logic:present> .... <logic:present name="qtyN"> <html:text name="qtyN"/><br> </logic:present>
As you can imagine this is pretty silly. In your action form, when preparing the display (ie when you put the text fields into the request scope) instead of adding them as separate entries it would be better to create a collection (eg ArrayList is good), add each string value to this collection, and then add this single collection to the request scope. Then when you get to your JSP you can use: <logic:iterate id="currentObject" name="nameOfCollStoredInRequest" scope="request"> <html:text name="currentObject" property="propertyName"/><br> </logic:iterate> This is better. You may need to play around to retrieve the strings you need in the form you need them. Personally I would create objects and add these to the collection. The objects are extracted and processed one at a time through the iterate loop. The you can use the name/property combo to retrieve any value from these objects. Kind regards mc On 29 Sep 2005 at 8:00, Troy Bull wrote: > Hello: > > I have a question about how to setup a "situation" I have. I want to > have a jsp page that has a variable number of text fields on it, named > qty1, qty2, ... qtyN where N is some unknown number. I tried to set it > up and use no form bean at all so I could just pull them from the > request object in my action. So my question is, can I use struts > without a form bean? And if I can't what do I have to do so I can handle > situations like this? > > Thanks > troy > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- > No virus found in this incoming message. > Checked by AVG Anti-Virus. > Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 28/09/2005 > FOCUS Computing Mob: 0415 24 26 24 [EMAIL PROTECTED] http://www.focus-computing.com.au -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.344 / Virus Database: 267.11.8/114 - Release Date: 28/09/2005 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]