Hi ,
I have an existing JSP which i need to modify using JSF tags. I need to perform some conditional checks to render the h:outputText components in a dataTable column.
My original JSP:
if (ap.License()) { %>
<%=ap.getMaxRows()%>
<% if (ap.getMaxRows()<=ap.getUsedRows() && ap.wheels.size()>0) {
if (ap.getMaxRows()<ag.getUsedRows()) { %>
<span class='text_red'>Over Limit: </span>
<% } else {%>
<span class='text_red'>At Limit: </span>
<%}%>
No available Rows </br>
<%}%>
<% } else if (ap.getWheels()) { %>
<%=ap.getWheelsSU()%>
<%} else { %>
No Limit
<%}%>
Basically some nested if-else conditions . So i want to test these conditions using JSTL 1.1 <c:if> or <c:choose> tag. Please let me know if there is a better way to do this.
Thanks and appreciate your help in advance.