好吧   我来个清楚的描述: 
<html>
<script>
function deleteusr(obj){
 deletename=obj.name;得到了要删除用户的名字
 //在这里怎么来实现这写东西 比如
//HttpSession usrsession=application.getAttribute(deletename+"session");//删除用户的session
   
//usrsession.removeAttribute("chatid");删除用户session中的关联
//不能直接在 script的function中写吧???????
}
</script> 
<table>
%>for(int j=1;j<=num;j++){
....%>   <td><font size="2" color="#000000"><%=usertemp %> </font></td>
   <% if(chatid.equals("admin")){ %>
   <td>
   <input type="button" name="<%=usertemp%>" value="剔除" onClick="deleteusr(this);">
   </td>
   <%}%>
    </tr>
<table>