This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming 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
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

Struts and JSTL

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I've some questions to the author... I'd like to know how much effort we have to put when using JSTL instead of the default Struts Tag Library.
Is JSTL sufficient to cover all features given by the framework to the presentation layer?
Should we use both libraries? Are there EL interoperability problems?
Thanks a lot
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EL language is part of JSP2.0 spec as prefered language. On a Servlet 2.4/JSP 2.0 container, all tags will be EL enabled, so Struts "standard" tags will accept EL expressions and automatically handle JSTL tags.
On JSP 1.2 container, you can use JSTL and EL-enhanced tags to get the same syntax. A JSTL implementation can be downloaded from jakarta-taglibs (1.0.x) and EL enhanced Struts tags from tag contrib dir. Struts 1.2 will include Tiles-EL tags that were missing from 1.1 struts-el contrib.
Web use those tags on our app without trouble and they're very usefull, as some logic that needed lot's of logic:xx tags becomes simple in EL.
When migrating to JSP 2.0 container, you will just need to change taglib directive on your JSPs to the struts "standard" tags.
 
Fabrizio Gianneschi
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by nicolas de loof:
EL language is part of JSP2.0 spec as prefered language. On a Servlet 2.4/JSP 2.0 container, all tags will be EL enabled, so Struts "standard" tags will accept EL expressions and automatically handle JSTL tags.


Yes, I know that... unfortunately I'm still working with the 2.3/1.2 spec.



On JSP 1.2 container, you can use JSTL and EL-enhanced tags to get the same syntax. A JSTL implementation can be downloaded from jakarta-taglibs (1.0.x) and EL enhanced Struts tags from tag contrib dir. Struts 1.2 will include Tiles-EL tags that were missing from 1.1 struts-el contrib.


This is a good news, for me. Thank you
 
Seriously? That's what you're going with? I prefer this tiny ad:
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!