Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database driven dynamic radion buttons

 
jon jony
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a need for database driven dynamic radio buttons option which will have two values to choose from - Yes and No and i am not sure how to do it.
The way i have it right now is

<c:for each var="types" >
<html:radio property="selectedradio" value="Y"> Yes
<html:radio property="selectedradio" value="N"> No
</c:for each>

This doesn't run. what do i need to make it woktti
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following is based is based on some working code (you can switch over to using the jstl tag instead of logic). In this case I would have a Collection of objects on my form with the method getItemValues(). My display action would be responsible for retrieving the list from the database and populating the form.


- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic