Two Laptop Bag
The moose likes JSP and the fly likes Everyone using JSTL? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Everyone using JSTL?" Watch "Everyone using JSTL?" New topic

Everyone using JSTL?

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1130
From reading books like the "Head First Servlets" (great book, by the way), I got the feeling that (JSP) scriptlets are O-U-T and LSTL is IN-IN-IN.

Is this the reality of the way most people are coding these days for JSPs.

Now that JSP 2.0 looks a lot like the wickedly popular ColdFusion, I'm wondering if it's time to get a book, hunker down, and just transition to JSTL.

Thoughts anyone?

-- Mike
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Yes, adopting JSTL, EL and scritless pages is the best thing you could do for yourelf (and anyone who will ever need to touch your pages).

[Asking smart questions] [About Bear] [Books by Bear]
Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1130
Joseph Hatton

Joined: Dec 12, 2002
Posts: 20
I agree with Bear. Not that scriplets are bad, but implicitly we see it as a negative coding practice.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
I'm trying to get the rest of the team in our company to adopt JSTL. Kinda tough as they're just getting used to scriptlets

Paul Bourdeaux
Ranch Hand

Joined: May 24, 2004
Posts: 783
Scriptless pages are definately the way to go... but if you work in an environment that is anything like mine, you will find yourself maintaining a lot of jsp that relys heavily on scriptlets. When developing new applications (or if you are lucky enough to completely refactor an older one), I say go with JSTL and EL.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook
I agree. Here's the link:
subject: Everyone using JSTL?
jQuery in Action, 3rd edition