title: struts2 confirm box with action
body: <p>I am trying to call struts2 action when I click 'OK' in confirm box. I have an id from jsp and I want to pass it into the action. I've tried several ways with no success. </p>
  
  <p>One thing is using href:</p>
  
  <pre><code> &lt;s:url action="disable" var="urlTag"&gt;
       &lt;s:param name="id"&gt;&lt;s:property value="id"/&gt;&lt;/s:param&gt;
   &lt;/s:url&gt;
  
  window.location.href="{urlTag}";
  </code></pre>
  
  <p>I also tried using ajax</p>
  
  <pre><code>        $.ajax( {  
              type: "POST",        
              url: "%{urlTag}",  //will this declaration of action work?   
              dataType: "json",  
              contentType: "application/json; charset=utf-8",  
              data: "",  
              success: function() {  
                  alert("success");    
              }  
         });  
  </code></pre>
  
  <p>I am new to this and really want to get though it. Thank you for any help!  </p>