Re: Dynamic Text Boxes - Urgent .Pl help - Struts
You can define an Array to catch multiple parameters of the same name. http://husted.com/struts/tips/006.html HTH, Ted. [name withheld] wrote: Hi Husted, I Have a Struts jsp with with some Dynamic text boxes. I have array list that contain data for these text boxes.I put this List in the request object in the action class. Here The problem is all text boxes names are same. Example java code. For (i=0;ilist.size ;i++) { input type =text name = chargeCode value =list.code } Actually I am doing this one by struts and Jstl for each. Here Text field name is same for all. How Can I create those many setter/Getter methods without knowing. Please let me know How to handle this with Jsp - form bean. I really appriciate your help. Thanks, -- Ted Husted, Junit in Action - http://www.manning.com/massol/, Struts in Action - http://husted.com/struts/book.html, JSP Site Design - http://www.amazon.com/exec/obidos/ISBN=1861005512. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: dynamic text boxes - with checkboxes?
Does this work with checkboxes or is there a problem due to the checkbox not sending anything if not checked? --- Mark Galbreath [EMAIL PROTECTED] wrote: You can name the textboxes dynamically using the logic:iterate indexId=xxx attribute: logic:iterate name=myBean property=property index=index id=id html:text property=% out.println( index ) % value= / /logic:iterate In you Action class request.getParameterNames will return an array like names[ 0, 1, 2, ...] and you can access each field by the String name or element position. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: RE: dynamic text boxes hello mark, but, i cant use html:text property=/ , becos i cant map them in the action form i want this property also be dynamic and also get the value in the action form, can be thro' request.getParameter... how can i override the struts behaviour of not checking the corresponding get/set method of the property while rendering the html:text. or is their anyway. TIA ---Original Message--- From: Struts Users Mailing mailto:[EMAIL PROTECTED] List Date: Thursday, May 29, 2003 08:52:09 PM To: 'Struts Users Mailing mailto:[EMAIL PROTECTED] List'; 'Nagendra Kumar O V mailto:[EMAIL PROTECTED] S' Subject: RE: dynamic text boxes Use logic:iterate to create the text boxes and request.getParamaterNames() in your Action. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: dynamic text boxes hi, i need to display n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can't use a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 Click Here http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here __ Do you Yahoo!? Yahoo! Calendar - Free online calendar with sync to Outlook(TM). http://calendar.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic text boxes
hi, i need todisplay n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can'tuse a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 IncrediMail - Email has finally evolved - Click Here
RE: dynamic text boxes
Use logic:iterate to create the text boxes and request.getParamaterNames() in your Action. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: dynamic text boxes hi, i need todisplay n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can't use a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here
RE: dynamic text boxes
hello mark, but, i cant use html:text property=""/ , becos i cant map them in the action form i want this property also be dynamic and also get the value in the action form, can be thro' request.getParameter... how can i override the struts behaviour of not checking the corresponding get/set method of the property while rendering the html:text. or is their anyway. TIA ---Original Message--- From: Struts Users Mailing List Date: Thursday, May 29, 2003 08:52:09 PM To: 'Struts Users Mailing List'; 'Nagendra Kumar O V S' Subject: RE: dynamic text boxes Use logic:iterate to create the text boxes and request.getParamaterNames()in your Action.Mark-Original Message-From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 29, 2003 10:53 AMTo: [EMAIL PROTECTED]Subject: dynamic text boxeshi,i need to display n number of textboxes on the jsp, the number which isknown only at runtime.now how do i map those text boxes to the action form.i can't use a array , becos i need to retreive them with the unique id..any ideas.TIA-nagiNagendra Kumar O V SMember Technical StaffIkigo India Private Ltd.470-B, Road No. 36,Jubilee Hills,Hyderabad 500033Contact(O): 23544671Cell: 98482-41789http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail -Email has finally evolved -http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here IncrediMail - Email has finally evolved - Click Here
RE: dynamic text boxes
You can name the textboxes dynamically using the logic:iterate indexId=xxx attribute: logic:iterate name=myBean property=property index=index id=id html:text property=% out.println( index ) % value= / /logic:iterate In you Action class request.getParameterNames will return an array like names[ 0, 1, 2, ...] and you can access each field by the String name or element position. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 11:33 AM To: [EMAIL PROTECTED] Subject: RE: dynamic text boxes hello mark, but, i cant use html:text property=/ , becos i cant map them in the action form i want this property also be dynamic and also get the value in the action form, can be thro' request.getParameter... how can i override the struts behaviour of not checking the corresponding get/set method of the property while rendering the html:text. or is their anyway. TIA ---Original Message--- From: Struts Users Mailing mailto:[EMAIL PROTECTED] List Date: Thursday, May 29, 2003 08:52:09 PM To: 'Struts Users Mailing mailto:[EMAIL PROTECTED] List'; 'Nagendra Kumar O V mailto:[EMAIL PROTECTED] S' Subject: RE: dynamic text boxes Use logic:iterate to create the text boxes and request.getParamaterNames() in your Action. Mark -Original Message- From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED] Sent: Thursday, May 29, 2003 10:53 AM To: [EMAIL PROTECTED] Subject: dynamic text boxes hi, i need to display n number of textboxes on the jsp, the number which is known only at runtime. now how do i map those text boxes to the action form. i can't use a array , becos i need to retreive them with the unique id.. any ideas. TIA -nagi Nagendra Kumar O V S Member Technical Staff Ikigo India Private Ltd. 470-B, Road No. 36, Jubilee Hills, Hyderabad 500033 Contact(O): 23544671 Cell: 98482-41789 http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309 http://www.incredimail.com/redir.asp?ad_id=309lang=9 lang=9 Click Here http://www.incredimail.com/redir.asp?ad_id=309lang=9 IncrediMail - Email has finally evolved - http://www.incredimail.com/redir.asp?ad_id=309lang=9 Click Here
Re: 'm*n' no of dynamic Text boxes in form Bean ???????
On Thu, May 23, 2002 at 05:10:19PM -0400, Boyalla, Raveendra wrote: 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? Yes, you can do it with Struts by combining indexed and nested properties on your form. No additional components are required. I worked this code out just now: in your form class protected List gridRows; public void reset(ActionMapping mapping, HttpServletRequest request) { gridRows=new ArrayList(10); for(int i=0; i10; i++) { gridRows.add(new Row(7)); } } /** Returns the list of Row objects */ public List getGridRows() { return gridRows; } /** Sets the new list of Row objects */ public void setGridRows(List newGridRows) { gridRows=newGridRows; } /** A class with a single property that the Struts ActionServlet can populate */ public static class Row { protected List items; public Row(int length) { items=new ArrayList(length); for(int i=0; ilength; i++) { items.add(); } } public List getItems() { return items; } public void setItems(List newItems) { items=newItems; } public int size() { return items.size(); } } --- In your JSP html:form action=/categoryEditScreen method=get bean:define id=form name=categoryForm type=CategoryForm/ % int height=form.getGridRows().size(); int width=((CategoryForm.Row)form.getGridRows().get(0)).size(); % table % for(int y=0; yheight; y++) { % tr % for(int x=0; xwidth; x++) { % tdhtml:text property='%= gridRows[+y+].items[+x+] %'//td % } % /tr % } % /table /html:form --- Of course, you could use logic:iterate tags if you prefer, but I've been running into problems on Tomcat 4.0 with Java 1.4 on Solaris, where the JSP won't compile if there are many JSP custom tags. Taking out the iterate tags solves the compilation problem for us without killing too much readability. Let me know if you get it working on your end. -- Jonathan Fuerth - SQL Power Group Inc. (416)218-5551 (Toronto); 1-866-SQL-POWR (Toll-Free) Unleash the Power of your Corporate Data - http://www.sqlpower.ca/ -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
'm*n' no of dynamic Text boxes in form Bean ???????
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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 'm*n' no of dynamic Text boxes in form Bean ???????
Hi I have the following display need in jsp. textbox_11 textbox_12 textbox_13 ...textbox_1n textbox_21 textbox_22 textbox_23 ...textbox_2n textbox_31 textbox_32 textbox_33 ...textbox_3n ... ... ... textbox_m1 textbox_m2 textbox_m3 ...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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: 'm*n' no of dynamic Text boxes in form Bean ???????
Yes, you can just use an array for for each row. On the HTML form, all the textboxes on one of your rows will have the same name. In the ActionForm, they will each be a subscript of the array. http://jguru.com/forums/view.jsp?EID=749162 -Ted. Boyalla, Raveendra wrote: Hi I have the following display need in jsp. textbox_11 textbox_12 textbox_13 ...textbox_1n textbox_21 textbox_22 textbox_23 ...textbox_2n textbox_31 textbox_32 textbox_33 ...textbox_3n ... ... ... textbox_m1 textbox_m2 textbox_m3 ...textbox_1n where m and n values are Dynamic. Is It possible to write a Form Bean with the above feature? Thanks Raveendra -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 'm*n' no of dynamic Text boxes in form Bean ???????
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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 'm*n' no of dynamic Text boxes in form Bean ???????
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. if No of rows and No of Columns are unknown then 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 Raveendra -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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: 'm*n' no of dynamic Text boxes in form Bean ???????
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] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED
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
RE: 'm*n' no of dynamic Text boxes in form Bean ???????
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
Re: 'm*n' no of dynamic Text boxes in form Bean ???????
There is not going to be a simple answer to this questions as it has been posed. You may need to provide a full description of your business requirements. The first question might be how you would you do this in any type of Web application? Once that question is answered, the Struts solution is usually straight forward. -- 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: 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
Re: 'm*n' no of dynamic Text boxes in form Bean ???????
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