1
我想从使用Struts2的URL获取参数,但它不工作。我可以使用EL,但不能使用Struts2。如何使用Strust2在JSP中获取URL参数OGNL
showReport
在URL中传递。
使用JSTL和EL它的工作原理
<c:choose>
<c:when test="${param.showReport eq true}">
<a href="#x" style="width:155px" 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>
</c:when>
<c:when test="${param.showReport eq false}"></c:when>
<c:when test="${empty param.showReport}"></c:when>
</c:choose>
S2方式
<s:if test="%{param.showReport=='true'}">
<a href="#x" style="width:155px" 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>
</s:if>
我需要使用S2 OGNL不知道我错了洞做呢?