You can use two way.
You can put the edit option on the username. That is username you can make as link to edit the user and another column to delete.
<display:table id="id" name="userList" pagesize="5" cellpadding="5px;"
cellspacing="5px;" style="margin-left:50px;margin-top:20px;" requestURI="">
<display:column property="name"
href="editUser" media="html" paramId="id"
paramProperty="id" title="name" />
<display:column title="Action" value="Delete" href="DeleteUser"
media="html" paramId="id" paramProperty="id"/>
</display:table>
Or you can add one more column extra for edit.
<display:table id="id" name="userList" pagesize="5" cellpadding="5px;"
cellspacing="5px;" style="margin-left:50px;margin-top:20px;" requestURI="">
<display:column property="name"
title="name" />
<display:column title="Action" value="Edit" href="EditUser"
media="html" paramId="id" paramProperty="id"/>
<display:column title="Action" value="Delete" href="DeleteUser"
media="html" paramId="id" paramProperty="id"/>
</display:table>
In your action class create a Long field called id
private Long id;
//getter and setter
And in your method you can just pass the values.
edit method
user=userDao..listUserById(id);