You might take a look at the nested taglib. It's part of 1.1 beta, but can also be used with 1.0.
http://www.keyboardmonkey.com/next/index.jsp -- Ted Husted, Husted dot Com, Fairport NY US -- Developing Java Web Applications with Struts -- Tel: +1 585 737-3463 -- Web: http://husted.com/about/services "Boyalla, Raveendra" wrote: > > Hi Ted, > > The example http://jguru.com/forums/view.jsp?EID=749162 > > has variable no of rows > But no variable no of columns. > > I have variable no of rows and variable no of columns of text boxes. > > So ActionForm should be able to store them in Arrays in Array . > > I can not use a simple Array in ActionForm. > It should be an Arrays in Array. > Does ActionForm grabs and populate text boxes from Arrays-in-Array type of > Objects? > > Please note that text boxes should be identified with row index and Column > index. > > Row index and Column Index are needed for business logic. > > Thank you > Raveendra > > -----Original Message----- > From: Ted Husted [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 23, 2002 4:43 PM > To: Struts Users Mailing List > Subject: Re: 'm*n' no of dynamic Text boxes in form Bean ??????? > > You can use as many HTML form elements on a page as you like. > > Just define an array to hold them all and give each element the same > HTML name. > > The ActionServlet will grab them all from the request and populate the > array. > > You can then just iterate through the array in your Action for whatever > processing is necessary. > > http://jguru.com/forums/view.jsp?EID=749162 > > -- Ted Husted, Husted dot Com, Fairport NY US > -- Developing Java Web Applications with Struts > -- Tel: +1 585 737-3463 > -- Web: http://husted.com/about/services > > "Boyalla, Raveendra" wrote: > > > > Hi > > > > Yes, I have variable no of rows and variable no of Columns. > > They are all text Boxes. My ActionForm should be able to populate and > > retrieve them. > > They are all editable text boxes . > > I want to update multi row and multi columns text boxes, > > where Row size and Columns size known at runtime. > > > > For example if some asks at runtime to display 20 rows and 10 columns of > > text boxes > > it should be able to display and retrieve that data from the form. > > > > Another person may ask for 100 rows and 20 columns of text boxes. > > There is no data model till now. I thinking for a generic form, which can > > display variable(rows and columns) no of > > text boxes and retrieve data. > > > > Thank you > > Raveendra > > > > -----Original Message----- > > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, May 23, 2002 4:10 PM > > To: [EMAIL PROTECTED] > > Subject: Re: 'm*n' no of dynamic Text boxes in form Bean ??????? > > > > Subject: Re: 'm*n' no of dynamic Text boxes in form Bean ??????? > > From: Vic C <[EMAIL PROTECTED]> > > === > > (Are you saying the number of columns is variable? What kind of a data > > model design is this? Rows variable good. Columns variable bad) > > > > You would define and create 2 beans in the action, and put them in > > request, before getting to the page, so you do not need a type. > > > > It looked like in your example you want to iterate one bean 2 times, the > > 2nd time nesting the 2nd bean. You would have to send more of your HTML > > mock up, or a JPG and data model and exaclty what you are trying to do. > > > > Iteration is normal, thats kind of what I am saying. If it is read only > > iteration look at http://edhill.its.uiowa.edu/display/ is nice iterate > > tag. But Struts iterate and JSTL iterate work OK as well, and you must > > use Struts iterate if you update, which by the index I assume you do > > update multi row. > > Can't help more than that. V. > > > > Boyalla, Raveendra wrote: > > > Hi Vic, > > > > > > Could you please give an Example. > > > i am not very clear about using two ActionForms. > > > I am doing the following when there are fixed no of say column text > boxes. > > > Do I need to have one more iterate tag inside? > > > > > > <STRUTS_LOGIC:iterate id="children" name="referralForm" > > property="children" > > > type="assets.icr.referral.web.form.Child" indexId="index"> > > > <tr> > > > <td> > > > <STRUTS_HTML:text name="children" property="childFname" > > > indexed="true" SIZE="15"/> > > > > > > </td> > > > <td valign="top" CLASS="table_content" width="16.66%"> > > > <STRUTS_HTML:text name="children" property="childMname" indexed="true" > > > SIZE="15"/> > > > > > > </td> > > > > > > </tr> > > > </STRUTS_LOGIC:iterate> > > > > > > > > > > > > Thank you > > > Raveednra > > > > > > > > > -----Original Message----- > > > From: Struts Newsgroup [mailto:[EMAIL PROTECTED]] > > > Sent: Thursday, May 23, 2002 1:55 PM > > > To: [EMAIL PROTECTED] > > > Subject: Re: 'm*n' no of dynamic Text boxes in form Bean ??????? > > > > > > > > > Subject: Re: 'm*n' no of dynamic Text boxes in form Bean ??????? > > > From: Vic C <[EMAIL PROTECTED]> > > > === > > > 2 form beans (N and M) that implement iterator interface. > > > Use iterate tag. > > > First part if just like what I show WebPIM, done all the time. > > > Than it looks like you restart the iteration of M, to show M. > > > If you have done any iteration than this is just a variation. What is > > > the problem? > > > > > > > > > Boyalla, Raveendra wrote: > > > > > >>Hi > > >> > > >>I have the following display need in jsp. > > >> > > >>textbox_11 textbox_12 textbox_13 textbox_14 textbox_15 textbox_16 > ....... > > >>textbox_1n > > >>textbox_21 textbox_22 textbox_23 textbox_24 textbox_25 textbox_26 > ....... > > >>textbox_2n > > >>textbox_31 textbox_32 textbox_33 textbox_34 textbox_35 textbox_36 > ....... > > >>textbox_3n > > >> > > > > > > > > > ............................................................................ > > > > > >>. > > >> > > > > > > > > > ............................................................................ > > > > > >>. > > >> > > > > > > > > > ............................................................................ > > > > > >>. > > >>textbox_m1 textbox_m2 textbox_m3 textbox_m4 textbox_m5 textbox_m6 > ....... > > >>textbox_1n > > >> > > >> > > >>where m and n values are Dynamic. > > >> > > >>Is It possible to write a Form Bean with the above feature? > > >> > > >>Thanks > > >>Raveendra > > >> > > >> > > >> > > >> > > >>-----Original Message----- > > >>From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] > > >>Sent: Thursday, May 23, 2002 12:18 PM > > >>To: Struts Users Mailing List > > >>Subject: Re: servlet spec compliance? > > >> > > >> > > >> > > >> > > >>On Thu, 23 May 2002, Dan Fraser wrote: > > >> > > >> > > >> > > >>>Date: Thu, 23 May 2002 09:36:57 -0400 > > >>>From: Dan Fraser <[EMAIL PROTECTED]> > > >>>Reply-To: Struts Users Mailing List <[EMAIL PROTECTED]> > > >>>To: [EMAIL PROTECTED] > > >>>Subject: servlet spec compliance? > > >>> > > >>> > > >>>Hi. Which versions of the servlet spec are supported by Struts? > > >>> > > >>>Will struts 1.1 work under Servlet 2.2, or will it require 2.3? > > >>> > > >> > > >> > > >>Struts 1.1 continues to work on Servlet 2.2 / JSP 1.1 platforms. > > >> > > >> > > >> > > >>>-- > > >>>Dan J. Fraser, SQL Power Group Inc <[EMAIL PROTECTED]> > > >> > > >> > > >>Craig -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>