This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database driven dynamic radion buttons

 
jon jony
Greenhorn
Posts: 1
  • 0
  • 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
  • 0
  • 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
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic