• 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 tag library vs JSTL

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I haven't gotten that far yet but my impression is that you can access bean property and do logic stuff with JSTL/EL instead of the struts tag libraries. I am guessing there is some over lapping elements between the two places. So the question is: is there any differences using one or the other? What would be the preference? Do you use JSTL/EL in struts application?
 
Ranch Hand
Posts: 510
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you go to the Struts site and look up their Tag docs, they tell you that uyou should use JSTL first before using the Struts tags. The El can be used in both.
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are in fact many instances where a Struts tag and JSTL tag will perform equivalent functions. In such a case, I prefer the JSTL tag over the Struts tags because JSTL is a more standard part of the J2EE specification and also because they tend to be more powerful.

There are certain Struts tags, such as the html:xxx tags that have no equivalent in JSTL.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
JSTL tags are more powerful compare to struts tag's, at the same time we have so many options are available condition checking & comparing strings, triming white spaces, converting upper case or lower case etc., it's easy on JSTL.

JSTL is using EL, so it's powerfull...

Cheers,
-Soma
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic