Tag Support class example of a tag library
There four steps to do a simple counter example in making use of custom tag libraries.
1) Create a Class which extends TagSupport.
please see the below code for the counter example. class name: CounterTag
step no 2)
in WEB-INF directory of tomcat create a directory calleds tlds and
make a file with the following code file name "counter.tld"
Step number 3 entry in web.xml file
file name web.xml( web.xml file resides in your tomcat in WEB-INF, just modify or paste the folowing code
Step number 4 make a JSP page any name would be fine
Please send comments to vgdarur.javafive@blogger.com
|