Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why is everyone using logic:iterate?

 
Peter den Haan
author
Ranch Hand
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
 
Junilu Lacar
Bartender
Posts: 7466
50
Android Eclipse IDE IntelliJ IDE Java Linux Mac Scala Spring Ubuntu
  • 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.
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can JSTL be used with Java 1.3?
 
Lasse Koskela
author
Sheriff
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
Marshal
Posts: 34422
347
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to know. Thanks Lasse.
 
Dirk Schreckmann
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.
 
Sheldon Fernandes
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 ]
 
Jason Menard
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.
 
Kishore Dandu
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??
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic