File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Database driven dynamic radion buttons" Watch "Database driven dynamic radion buttons" New topic
Author

Database driven dynamic radion buttons

jon jony
Greenhorn

Joined: Jan 03, 2007
Posts: 1
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

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
 
Similar Threads
problem with "html:radio"
How to set default value for a radio button?
help with html radio tag
Struts radio button problem
How to make dynamic radio button checked