This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why will we write a custom tag, and not a JSPs fragment?  RSS feed

 
Tina Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why will we write a custom tag, and not a JSPs fragment?

When both can do the same thing.

we all write custom tag, but can someone please explain why.

Thanks for your help.
Have a nice day.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Scriptlets are evil and should be considered deprecated for JSP 2.0. Custom actions (tags) bring notational unity, encapsulation, and all other manner of OO goodness to the party.
[ December 05, 2006: Message edited by: Bear Bibeault ]
 
graham king
Ranch Hand
Posts: 133
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's like asking yourself, "Why can't I re-write my code everywhere instead of reusing it from one place?"
 
Tina Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ December 05, 2006: Message edited by: Tina Jain ]
 
Tina Jain
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you for your help.

Have a nice day.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!