• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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" />
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic