Exact use of Custom Tag Library | Community
Skip to main content
Level 9
November 19, 2015
Solved

Exact use of Custom Tag Library

  • November 19, 2015
  • 2 replies
  • 678 views

Hi All,

In the article https://helpx.adobe.com/experience-manager/using/customtags.html.

What I understand is

1] There is a java class created with getters and setters, which is referred to in the tld file.

2] In the jsp created, this tld file is referred.

So, what exactly is the purpose of introducing a tld file in between. Any thoughts/pointers on this will be helpful.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Lokesh_Shivalingaiah

Thats the normal process of creating custom tags irrespective of AEM !! XML acts as a definition of the tag and java class is the model to hold the values of those tags.

Refer the below URLs which will give more information on custom tags

https://docs.oracle.com/cd/E11035_01/wls100/taglib/quickstart.html

http://www.tutorialspoint.com/jsp/jsp_custom_tags.htm

2 replies

Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
November 19, 2015

Thats the normal process of creating custom tags irrespective of AEM !! XML acts as a definition of the tag and java class is the model to hold the values of those tags.

Refer the below URLs which will give more information on custom tags

https://docs.oracle.com/cd/E11035_01/wls100/taglib/quickstart.html

http://www.tutorialspoint.com/jsp/jsp_custom_tags.htm

edubey
Level 10
November 19, 2015

TLD- Tag Library Descriptor define the definition and details regarding your tag.

If at any point of time you feels you need some custom tag, you can create.

In JSTL you have tags, when any of default available tag wont server your purpose, you can go for custom one