This week's book giveaway is in the Artificial Intelligence forum.
We're giving away four copies of Pragmatic AI and have Noah Gift on-line!
See this thread for details.
Win a copy of Pragmatic AI this week in the Artificial Intelligence 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 ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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" />
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!