This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
it never enter the above block. even i tried and showed sysvar by using the following code line in the browser
I can see that its value is loop bu there is no luck to enter the above block. No my question is : while the value that is inside sysvar is equal to what Im checking with Struts logic tag , why it never enter the block ? is it an encoding problem ?
can some one please tell me how to write that conditional block in JSTL ? maybe JSTL Do it correctly.
posted 10 years ago
In order for a variable to be recognized by either a struts logic:xxx tag or a JSTL tag, it must be in one of the scopes.(page, request, session or application).
Try putting the following code somewhere before your logic:equal tag.
<% pageContext.setAttribute("sysvar", sysvar); %>
To answer your second question: The equivalent JSTL tag is: