jsp - Display Tag unique row ID issue -
i working on employee leave application managers gets see there sub-ordinate pending leave request, can choose either accept or reject request.
i trying achieve using display tag, managed details db , display on jsp.
<disp:table name="pendingleaverequest" > <disp:column /> /*sample display column*/ <disp:column /> <disp:column title="approve"> <input type="button" class="btn" value="approve" onclick="approveleave(this,**like pass row id**)" /> </disp:column> <disp:column title="reject"> <input type="button" class="btn" value="reject" onclick="rejectleave(this, **like pass row id**)" /> </disp:column>
my problem getting exact row details. went thro' articles on display tag in stacckoverflow, couldn't find relevant article issue. display tag http://displaytag.sourceforge.net/1.2/displaytag/tlddoc/index.html, reference article not clear on using uid details row details.
my question is, 1) how row id , pass it? 2) using row id how row details? novice when comes using display tag. highly appreciated.
<display:table name="pendingleaverequest" id="row"> ... <display:column> <input type="button" class="btn" value="approve" onclick="approveleave(this,${row.id})" /> </display:column>
where id
property of object.
Comments
Post a Comment