• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

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

 
Greenhorn
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" />
 
I was born with webbed fish toes. This tiny ad is my only friend:
global solutions you can do in your home or backyard
https://coderanch.com/t/708587/global-solutions-home-backyard
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!