Customize tag lib 2

We also can customize the tag lib using component class, here are the steps:

1. Define the component

 

 

2. Define the tag, here we'll define a datagrid using jQuery plugin, so you should add necessary javascript before using the tag.

 

 

3. Define the tld, which should be added to "WEB-INF/tld/tms-tags.tld".

 

 

4. Configure the tag in web.xml

 

 

5. Use the tag lib in jsp

 

 

Ok, you'll see the result.

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章