Which I want the value Y and N to be displayed according to the value conditioned in <logic:equal> however when i run the website, it displayed both Y and N. Is there any struts tag library that enable to break from <loop:iteration> cause I've tried to put <%break;%> inside it but it result and error Please give me some feedbacks, i'm in the middle of deadline
No, it is not possible to break from a <logic:iterate> loop.
Since you already have a lot of scriptlet code in this loop, I'd recommend that you dispense with the <logic:iterate> tags and <logic:equals> tags entirely and just write java code. Then you will have no problem breaking from the loop if you need to.
However, when i run the web it never reach condition of value "Y", it always entering the condition of value "N" The result of the debug is always "false" but when i checked the database it has several "Y" value How am i going to solve this?
Joined: Feb 15, 2005
It seems pretty clear to me that if you find that the contents ListSmkKpi does not match what you know to be in the database, whatever process populated ListSmkKpi did not do so correctly. You'd do well to look at that process.