Hi,
I would like to add another query. I wish to know how I can assign unique
property ids to my text boxes(i.e. <html:text property="21"/>) in the
following code.  I feel would be needing unique ids so that I can access
their values through the Action Form. Please Correct me if my last statement
is incorrect.

This is a part of my JSP:

         <logic:iterate id="nolevels" name="ch" property="Nolevels">
                          
                                <TD align=middle bgColor=#d5dadf colSpan=2 
                              height=37><FONT color=#3194cc><B><FONT 
                              face="Arial, sans-serif" color=#fa795d 
                              size=2>S</FONT></B></FONT><FONT 
                              face="Arial, Helvetica, sans-serif" 
                              size=2><B>2</B></FONT></TD>
                            <TD width=12 bgColor=#eaf5fc>&nbsp;</TD>
                            <TD align=middle width=43 bgColor=#ddeff9>
                            <!--INPUT 
                              onkeypress=mask(); 
                              style="BORDER-RIGHT: #cbcdcd 1px solid;
BORDER-TOP: #cbcdcd 1px solid; BORDER-LEFT: #cbcdcd 1px solid;
BORDER-BOTTOM: #cbcdcd 1px solid" 
                              maxLength=3 size=1 name=textfield2222--> 
                     <html:text property="21"/>
                                </TD>
                            
          </logic:iterate>  
  
Thanks Once Again,
Seshadhri Srinivasan
                        
----Original Message-----
From: Seshadhri Srinivasan [mailto:[EMAIL PROTECTED]
Sent: Friday, August 29, 2003 4:22 PM
To: 'Struts Users Mailing List'
Cc: Balabaskaran, Kanagasabai; Kartikeya Misra
Subject: RE: Writing ActionForm(bean) class when the no of input boxes
va ry at runtime


Hi,
I am used to coding ActionForm beans to get data from a JSP page when the
no. of input boxes on the page are constant. But now, I have a page wherein
I use a Handler class to get the dimensions of a table and then I use the
<logic:iterate> tag to create variable number of input boxes(that constitute
the table) on the page. Now, for these input boxes I wish to write an
ActionForm bean. The problem is when the number of input boxes can very I am
not sure of how to write the get and set methods in the bean. Can some one
help me in writing the Form bean for this page. 

Thanks,
Seshadhri Srinivasan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to