dcsimg
50 Text fields...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   suman_Seshadri
Posted On:   Friday, June 11, 2004 03:57 PM

Hi,

I am having a jsp page with 50 text fields. Does that mean that I should have 50 getter methods ? There should be a better way of doing this . Am I supposed to use tag ? ??

Any help is highly appreciated.
- Suman



for (int i=0;i <10;i++)

{ for (int j =1;j <=5;j++)

{

<%=i+1%>" size="10" value=""/>

<%

}
}


Re: 50 Text fields...

Posted By:   suman_Seshadri  
Posted On:   Friday, June 11, 2004 05:49 PM

Oh I got it !..I am supposed to have "for" loop with just this :



and have a getter mthod that will return string[] and similarly set methd . I tried a sample prog with this..and it worked !
-thanx
About | Sitemap | Contact