Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Exact use of Custom Tag Library

Avatar

Level 9

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.

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 10

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