• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

HTML forms

 
Ranch Hand
Posts: 100
Android Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Robert Darling
Ranch Hand
Posts: 100
Android Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using struts 2
 
Robert Darling
Ranch Hand
Posts: 100
Android Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks solved the problem.
 
This tiny ad will self destruct in five seconds.
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic