my list is like:-
UserName action
=================
abcd delete
1234 delete
my jsp code is like:-
<table>
<tr>
<th>UserName</th>
<th>Action</th>
</tr>
<s:iterator value="list">
<tr>
<td><s:property value="name" /></td>
<td><a href="<s:url action='deleteUser'/>">delete</a></td>
</tr>
</s:iterator>
</table>
how to call an action using ajax that delete a user from the list and refresh the list
for a simple ajax refresh functionality i would go in this way
first a div containing the list like this
The ListUser.jsp will contain my list of users to refresh and display
a simple jquery ajax request would look like this
The DeleteAction.action is struts.xml will look like this
If you have other action also which has a result link to take you to the result page then following will be another entry in struts.xml
Your Result.jsp will contain the div with id results.
cheers :)