Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.28 KB | None | 0 0
  1. <%@ taglib uri="/WEB-INF/tld/fmt.tld"  prefix="fmt"%>
  2. <%@ taglib uri="/WEB-INF/tld/tiles-jsp.tld" prefix="tiles" %>
  3. <%@ taglib uri="/WEB-INF/tld/struts-tags.tld" prefix="s"%>
  4. <%@ taglib prefix="sec" uri="/WEB-INF/tld/security.tld" %>
  5.  
  6. <script>
  7.  
  8.     var conferma = confirm("Confermi di voler procedere con l'eliminazione dell'associazione?");
  9.     alert("ciao");
  10.     if(conferma == true)
  11.     {
  12.         location.href = '<%=request.getContextPath() %>/endRicercaAssociazioneTerritoriale?calledByPaginatore=true&numPagina='+num;
  13.     }else
  14.     {
  15.         indietro();
  16.     }
  17.    
  18.     function indietro()
  19.     {
  20.         location.href = '<%=request.getContextPath() %>/startRicercaAssociazioneTerritoriale';
  21.     }
  22.  
  23.     function scegli()
  24.     {
  25.         if(document.getElementById("operazione").textContent == 'elimina'){
  26.             indietro();
  27.         }else{
  28.             indietroRisultatoRicerca(document.getElementById("numPagina").textContent);
  29.         }
  30.     }
  31.    
  32.    
  33.  
  34.    
  35. </script>
  36.    
  37.  
  38. <s:form action="%{operazione}AssociazioneTerritoriale" method="post">
  39.     <s:hidden name="operazione"/>
  40.     <span id="numPagina" style="display:none"><s:property value="numPagina"/></span>
  41.     <span id="operazione" style="display:none"><s:property value="operazione"/></span>
  42.     <span id="codAssociazioneTerr" style="display:none"><s:property value="codAssociazioneTerritoriale"/></span>
  43. </s:form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement