• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Struts and JSTL

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
them good ole boys were drinking whiskey and rye singin' this'll be the day that I die. Drink tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic