File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Why is everyone using logic:iterate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Why is everyone using logic:iterate?" Watch "Why is everyone using logic:iterate?" New topic
Author

Why is everyone using logic:iterate?

Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
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

Joined: Feb 26, 2001
Posts: 4445
    
    5

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.


Junilu - [How to Ask Questions] [How to Answer Questions]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Can JSTL be used with Java 1.3?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
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.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30116
    
150

Good to know. Thanks Lasse.
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
Sheldon Fernandes
Ranch Hand

Joined: Aug 18, 2004
Posts: 157
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

Joined: Nov 09, 2000
Posts: 6450
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

Joined: Jul 10, 2001
Posts: 1934
BTW does JSTL work with JDK1.3.1 on weblogic 6.1??


Kishore
SCJP, blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why is everyone using logic:iterate?
 
Similar Threads
nested tags
JSTL version causing exceptions?
Issues with struts condition tag, lil help please
standared tag uri : need clarification
using <html:iterate> to display an array in the array