Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Why is everyone using logic:iterate?

 
author
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Mystified,

- Peter
 
Sheriff
Posts: 15037
251
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the practice isn't questioned enough?

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.

We just need to keep beating the drum I guess.
 
author & internet detective
Posts: 39879
798
Eclipse IDE VI Editor Java
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Jeanne Boyarsky:
Can JSTL be used with Java 1.3?


Yes. I recently added JSTL support to an application running on top of WebLogic 7.0 and J2SE 1.3 and it worked like a charm.
 
Jeanne Boyarsky
author & internet detective
Posts: 39879
798
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to know. Thanks Lasse.
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Argh. I'm guilty. I plead, "I didn't know better."

Perhaps it's time I cracked open my new copy of Peter's book - "Beginning JSP 2" - that's been sitting on my desk for two weeks, now.
 
Ranch Hand
Posts: 157
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Struts provides 5 tag libraries. (at least that is what I see in the developer guides)

"Till date, only features of the Bean Tags and Logic Tags are available in JSTL."
Would I be right in making a statement like this?

[Edit]
Probably the HTML Tags and Tiles Tags are specific to the struts framework.
What about the Nested Tags?
[ September 12, 2004: Message edited by: Sheldon Fernandes ]
 
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 1934
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BTW does JSTL work with JDK1.3.1 on weblogic 6.1??
 
Not so fast naughty spawn! I want you to know about
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!