I am trying to disable a link based on the URL parameter using Struts2
if condition
. I don't want to use JavaScript
but without it I am not sure how would I get the link and disable it.
Condition is if showReport=false in URL then disable the link.
Form
<s:set name="showDownloadReportLink" value="showReport"/>
<form name="viewIntegrationReport" id="viewIntegrationReport" action="<integration:urlAction actionName='/integration/viewReportIntegration'></integration:urlAction>" method="POST">
<s:hidden property="createdDays" name="createdDays" value="30"/>
<s:if test="%{#showDownloadReportLink=='false'}">
???
</s:if>
</form>
Here is the link in a table
<table>
<tr>
<td class="dataFieldCell">
<div class="downloadReportLink">
<a href="#x" id="downloadReportId" title="This function will provide you a 30 day download of all your eSign transactions." onclick="document.getElementById('viewIntegrationReport').submit()"><span>Export E-Sign Information</span></a>
</div>
</td>
</tr>
</table