Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
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
Pie
Posts: 64700
86
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