Along with accessing the body of the custom tag, you can also have the attributes which can be added to the custom tag. In order to define a attribute in the custom tag we need to have the below two entries. we need to define a property in the Tag Handler Class and have a setter method for it. Define attribute tag inside the TLD File. … [Read more...]
Access body of Custom Tag in JSP
In my previous article, we have learnt how to create custom tags in jsp and how to use it. In this tutorial, we will learn how to access the body of the custom tags (i.e) text which is given between our custom tags <my:mytag>Body of Custom Tag</my:mytag> … [Read more...]
JSP Custom tags
Custom tags are known as user-defined tags. When a JSP page containing a custom tag is executed, the tag is translated into a servlet and the tag operations are performed on object of a Tag Handler. In order to create a custom tag, we need to know the below three highlighters. … [Read more...]