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

Everyone using JSTL?

 
Mike London
Ranch Hand
Posts: 1192
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 64848
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
Mike London
Ranch Hand
Posts: 1192
4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
 
Joseph Hatton
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Bear. Not that scriplets are bad, but implicitly we see it as a negative coding practice.
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 783
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic