• Post Reply Bookmark Topic Watch Topic
  • New Topic

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" />
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!