We have used the RSTL tags in our project as explained below with the latest code available on the web: http://yatb.mitza.net/2013/07/rel-standard-tag-library.html
I am noticing a strange error that the expressions are working fine & we get the JSP output as expected but a couple of times the design of the pages gets distorted. When I analyzed the issue I found that we have a conditional which gets closed on meeting an expression as below:
<c:if test="iSectionColumn gt icolumnCount">
<c:set var="rowCount" value="0" />
<c:set var="columnCount" value="${columnCount + 1}" />
@("</div>")
</c:if>
Sometimes when iSectionColumn is equals to icolumnCount, the inner code gets executed and break the layout. To avoid any double/float/Integer issues, I also tried converting both the variables to Integer before comparison, still, sometimes the code gets executed which I am not able to figure out that why is it happening.
As this issue is intermittent, I wrote a script to access the same page in different threads and found that out of 1000 threads 6 or 7 usually gives the different html output where the code inside the expression got executed.
Any pointers to debug the issue would be a great help.
Thanks in advance