title: variable declared in jsp gives previous values on click in a different jsp, where as the java value is correct
body: <pre><code>&lt;s:set name="deletedProductId" value="%{serviceOrder.serviceOrderProducts[#attr.varStatus.index].productLineNumber}"/&gt;
  &lt;s:set name="deletedProductId" value='%{serviceOrder.id + ":" + #attr.deletedProductId}'/&gt;
  </code></pre>
  
  <p>the above line of code is the way the deleted productId is declared in jsp</p>
  
  <pre><code>&lt;a href="serviceOrder!deleteServiceOrderProduct.action?id=&lt;s:property value='%{entity.id}'/&gt;&amp;&amp;deletedProductId=&lt;s:property value='%{#attr.deletedProductId}'/&gt;" onClick="return confirmDeleteProduct()"&gt;
      &lt;img src="${imageUrlBuilder.getImageUrl('icon_record-delete.gif')}" alt="&lt;s:text name="serviceOrder.serviceOrderProducts.delete.info"/&gt;" title="&lt;s:text name="serviceOrder.serviceOrderProducts.delete.info"/&gt;"/&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p>This is the way in which the confirm deleteproduct is called. </p>
  
  <pre><code>function confirmDeleteProduct() {
      alert('${deletedProductId}');
      alert('${productDeletableOnServiceOrder}');
      &lt;s:if test="%{!productDeletableOnServiceOrder}"&gt;
          alert('${serviceOrderHasJob}');
          return false;
      &lt;/s:if&gt;
      return confirm('${confirmDeleteProduct}');
  }
  </code></pre>
  
  <p>once the page loads and we are clicking on the delete icon. the alert popup gives null value for deletedProductId().  Is there a way I cannot get the null value and get the current value that I am clicking on?</p>
  
  <p>Any help will be appreciated.
  Thank you.</p>