jQuery in Action, 3rd edition
The moose likes Struts and the fly likes Database driven dynamic radion buttons Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Database driven dynamic radion buttons" Watch "Database driven dynamic radion buttons" New topic

Database driven dynamic radion buttons

jon jony

Joined: Jan 03, 2007
Posts: 1

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

Joined: Feb 08, 2006
Posts: 948
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
subject: Database driven dynamic radion buttons
It's not a secret anymore!