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]>

Reply via email to