aspose file tools*
The moose likes Struts and the fly likes HTML forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTML forms" Watch "HTML forms" New topic
Author

HTML forms

Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

hi,

I am brand new to struts (1 week old).

I am writing a struts application that searches the database and display the result in a table.

For the sake of argument lets suppose the database has 2 colums . A name and a gender.

The name should be displayed in a text box and the gender in a radiobox.

now lets suppose the database return 5 rows.i want all fice in a html table such that each row is a seperate html:form.

i know how to dynamically populate textboxes and radio buttons. but dont now to solution to the above.

I read on the internet i can use hash mapped ActionForms. But didnt find any way how to do this.

Kind Regards,
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Which version of Struts are you using? It makes a big difference in how you solve this problem.

If you're using some version of Struts 1, I'd suggest you check out question 7 of this forum's FAQ.
[ June 21, 2008: Message edited by: Merrill Higginson ]

Merrill
Consultant, Sima Solutions
Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

i am using struts 2
Robert Darling
Ranch Hand

Joined: Jun 21, 2008
Posts: 100

Thanks solved the problem.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTML forms
 
Similar Threads
Displaying data on screen
using xsl:for-each tag in xsl file
How to use xsl:when
display value from resources file on jsp with struts tags?
enum + select on Struts 2