Organizing and Adding Tag Library Descriptors

The Workshop group of products scan the tag libraries declared in the web.xml, the standard JSP and HTML tags, and any custom tags. During page development The IDE provides a Design Palette view which works like a tool palette and allows you to drag and drop tags into the page. To create and update tag library descriptors, The IDE includes a specialized TLD Form editor which organizes current tags and attributes into a form layout and provides wizards to define new TLDs.

Defining and managing a TLD

  1. To Define a new TLD file
    1. Under the File menu select New | Other .
    2. Expand Web, select TLD File and click Next.
    3. Provide a file name and location for the new TLD.
    4. Click Next and enter the TLD properties. The IDE provides step by step instructions to define the basic parameters of the TLD file. Once the skeleton of the TLD has been defined, new tags and attributes can be added using the TLD form editor.
    5. Click Click Next to update the web.xml to include this new taglib or click Finish.
  2. To edit an existing TLD file in the TLD form editor
    1. In AppXplorer, navigate to and double-click on an existing TLD file.
    2. The TLD file will open in the TLD form editor. The TLD editor organizes information into three tabs. The Overview tab displays the basic information about the TLD such as the URI and documentation. The Tags tab displays the current tags and attributes defined in the TLD in a combined form/source view. The Source tab displays the full TLD source.

Adding a new tag to a TLD

  1. To add a tag to an existing TLD
    1. In AppXplorer, navigate to and double-click on an existing TLD file. The TLD file will open in the TLD form editor.
    2. Select the Tags tab and press the New Tag button.
    3. Enter the tag properties in the resulting Tag Tag dialog.
    4. Click Ok. The new tag will appear in the list of tags defined in this tag library as well as in the TLD source.

Adding a new attribute to a TLD tag

  1. To add a new attribute to a TLD tag
    1. In AppXplorer, navigate to and double-click on an existing TLD file. The TLD file will open in the TLD form editor.
    2. Select the Tags tab and in the list of All Tags, select a tag, and press the New Attribute button.
    3. Enter the attribute properties in the resulting Attribute Tag dialog.
    4. Click Ok.



Still need help? Post a question on the Workshop newsgroup.