Hi all
I have a dynamic form which has a series textfield.
the name of the textfields like "text1", "text2", "text3",.. ,etc.
I am not sure how many textfields do i have. (as they looped from sql)
I use strut form bean, I have no idea about how to get these kind of textfield value.
private String text1;
private String text2;
.
.
.
pls help, thanks
Regards,
Kin
-
dynamic form for struts (2 messages)
- Posted by: kin Yeung
- Posted on: July 06 2004 00:38 EDT
Threaded Messages (2)
- dynamic form for struts by Trevor Brosnan on July 06 2004 02:47 EDT
- Article by Richard Aday on July 13 2004 10:07 EDT
-
dynamic form for struts[ Go to top ]
- Posted by: Trevor Brosnan
- Posted on: July 06 2004 02:47 EDT
- in response to kin Yeung
Kin,
You should use a mapped form or indexed form:
http://struts.apache.org/faqs/indexedprops.html
There is lots of information on the web for this topic.
Trevor -
Article[ Go to top ]
- Posted by: Richard Aday
- Posted on: July 13 2004 10:07 EDT
- in response to kin Yeung
Here's three articles that should help you understand DynaForms better:
http://www.developer.com/java/ent/article.php/2214681
http://www.developer.com/java/ent/article.php/2233591
And here's something you might find interesting if you ever need it:
http://www.developer.com/java/ejb/article.php/3321521