This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Why on earth is everyone still using <logic:iterate> and the rest of the Struts logic taglib? The JSTL is much superior, and the Struts boys know it:
Note: - Many of the features in this taglib are also available in the JavaServer Pages Standard Tag Library (JSTL). The Struts team encourages the use of the standard tags over the Struts specific tags when possible.
The only situation in which I would consider using the Struts logic taglib is on a JSP 1.1 container, and they too are stone age technology by now.
I recently discovered that the MDA tool we're using generates JSPs that uses Struts html:form tags that still have the deprecated type and scope attributes. And this is a recent release of the tool. A lot of our custom JSPs also use logic:iterate :roll: . Sometimes people just go with what's familiar.
Why do folks still use <logic:iterate>... I'll concede that in general it's probably laziness. Lacking strong compelling reasons to change their practices, I suspect most just go with what they already know.