To fix this Ant error message that confuses users into thinking that the cause of the error is somewhere in the foreach tag, do the following steps:

  1. Go to  the download page of ant-contrib at http://sourceforge.net/projects/ant-contrib/files/
  2. Download ant-contrib-0.3 and copy ant-contrib-0.3.jar to the lib folder where your Apache Ant is installed.
  3. In your build.xml file, make sure you declare this XML

That is all!

To break a c:forEach loop in JSTL, well, is impossible. You would have to add in some extra variables and maybe a varStatus variable to do some conditional statements and break out of the loop if those condition(s) is/are met. If a JSTL attribute did exist to break out of a c:forEach loop, then it would ease programmer’s work of adding extra code to your existing one. But then again, there is none.

Related Posts Plugin for WordPress, Blogger...