• 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

Best choice!

 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
I'm a totally confused to decide which one, Javabeans or Custom tags, is the best to use within a JSP page and in what circumstances?
pl. help ...
 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm relatively new to JSP, and I've been using Beans to support all the business logic of my applications. However, I'm starting to look at custom tags because the code seems alot cleaner -- it takes virtually all those annoying scriplets out of your JSP, and moves them to a class where they should be. I'm not sure how these two technologies compare as far as efficiency, but it does seem that custom tags lend themselves to cleaner, more modular code. Hopefully there will be some more posts to discuss this.
WS
Oh yeah, I've been reading some interesting articles on JSTL (beginner tutorials, etc.) at IBM developerWorks: http://www-106.ibm.com/developerworks/java/library/j-taglib/
[ April 01, 2004: Message edited by: Winston Smith ]
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It's certainly not an either-or scenario.
In a well-architected web app, the JSP pages will serve the function of the View and will perform little to no processing on their own. In this scenario, beans are a great way to carry data from the controller (usually a servlet) to the view. Custom actions (formerly known as custom tags) are great to create re-usable on-page components.
I use both liberally in my web apps.
 
Vanchi Nathan
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
Thanks you so much...
 
Joel Salatin has signs on his property that say "Trespassers will be Impressed!" Impressive 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