Struts 用js传递Token

jsp页面:

删除 

js函数:

function f_delete(id,tokenId)         
{            
   if(!confirm('你确认要删除吗?')){
    return false;
   }          
   var token = document.getElementById(tokenId).value;      
   alert(token);
   this.location.href="comboinit.do?method=delete&tcid="+id+"&org.apache.struts.taglib.html.TOKEN="+token;         
}     

  

你可能感兴趣的:(Struts)