• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what is the difference between Simple Tag, Tag File, Custom Tag, TagLib?

 
yamini nadella
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These are looking similar.
SimpleTag
Tag File
CustomTag
TagLib

What is the difference between them?

Yamini
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simple Tag is a Java implementation of a tag inside JSP. You can place a tag in JSP, but what the tag does is depends on the implementation.

Tag file is another implementation of a tag. For Simple Tag, you have a Java class that holds the implementation. For tag file, it is in JSP format. Just like the relationship between JSP and Servlets. They refer to the same thing (Java class), but with different syntax.

Custom tag is a generic term for JSP tag. Any tags that are not provided in standard J2EE library, or the tags that you develop for your own can be refered as custom tags.

Taglib is a collection of custom tags.

Hope this help.

Nick
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic