How to Write JSP Custom Tags
- 1). Open your Java development platform by double clicking the program icon on your computer's desktop or by selecting the program icon from the "Program Files" submenu of the "Start" menu.
- 2). Select the menu option to create a new "Tag Library Descriptor" file. The file will contain the custom JSP tag definition and other required information for its definition.
- 3). Enter the tag library version, shortname for the tag, and descriptive information in the text fields provided by your Java development platform that will be entered in the header definition tag for the custom JSP tag.
- 4). Enter the attribute name for the custom tag that corresponds to the <name> element field.
- 5). Select a Java Class that will be used for the custom JSP tag. If your Java Class structure uses packages, you will need to enter the full package identification. For example, "com.myWebSite.MyJSPCustomClass."
- 6). Enter desired meta data information after the class definition. Common information used in this field is the version of the custom tag or Java Class used for the tag.
- 7). Choose the "Save" menu option after finishing the meta data information entry to complete the JSP custom tag.
Source...