This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Using display tag in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Using display tag in struts" Watch "Using display tag in struts" New topic

Using display tag in struts

Sreek Gupta

Joined: Mar 08, 2006
Posts: 24
Hi , I have following code in JSP to display a table.

<display:table id="cp" class="datatable" name="sessionScope.myList" pagesize="5" cellpadding="0" cellspacing="0" requestURI="/">
<% i = 1;%>
<html:radio property="selectedRow" value="<%=String.valueOf(i)%>" />
<display:column property="empName" title="Employee Name" sortable="true" />
<display:column property="paymentAmount" title="Payment Amount"/>
<% i = i+1;%>

Intension is when i select radio button, depending on the selection i want to read the selected values in my Action.
I have getters and setters in my Form bean. But when i am saying getEmpName() in action it is returning me 'null'.

My question is how to extract the selected row of a table (that is using display tag library) in my action class?

Please help me with sample code if possible.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Using display tag in struts
Similar Threads
display tag export problem
maintin checkbox stauts during paginatin(dispalytag)
Conditional display of DisplayTable of DisplayTag
problem exporting data using Display Tag
JSTL paging error