This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Get Programming with Java (MEAP only) and have Peggy Fisher on-line!
See this thread for details.
Win a copy of Get Programming with Java (MEAP only) this week in the Beginning Java forum!
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Need to create radio buttons from struts-2-display-tag-radio-button  RSS feed

Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there.

I am displaying the data coming from database using <display:table> .

It has 2 columns. Col-1 is  "Job Name" and col 2 is "job Status".  We have 7 application batch jobs running and lets call it by job 1,job 2...job 7 as saved in the Job Name, in db col and another col contains its status whether it is running or not by simply Y or N  

I am able to display the data from both the cols in the jsp with below code as a table. But need to create two radio buttons for each row as Y or N. if one of the job is started (as marked in the db) then its corresponding radio button is selected automatically.

Two things should happen
1) Radio button should be selected automatically by saying the corresponding job is selected or not.
2) Once after selecting the radio button , i can able to start or stop the job from UI as per my choice, which I had decided to use Ajax. (That i will take it further)

Any helping hand would be appropriated.

               <display:table name="jobstatustable" uid="jobstatustable" sort="list" size="resultSize" excludedParams="*" requestURI="JobStatus.action" class="displayTable" style="width:98%;" pagesize='<%=(Integer)request.getAttribute("pageSize")%>'>
<display:column property="jobname" titleKey="Job Name" maxLength="40" sortable="true" nulls="true" />
<display:column property="jobstatus" titleKey="Status" style= sortable="true" nulls="true" />
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!