delete user from a list using ajax and refresh list only using struts 2
问题 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 回答1: for a simple ajax refresh functionality i would go in this way first a div containing the list