Win a copy of AWS Security this week in the Cloud/Virtualization 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

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
 
What's a year in metric? Do you know this metric stuff tiny ad?
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic