JBuilder2005 Practical JSP Special page

Source: Internet
Author: User
Tags datetime tld
Welcome Page welcome.jsp

When the user enters the correct password, switch.jsp controls the JSP page to guide the welcome.jsp Welcome page, in this section, we develop this welcome.jsp page. Because welcome.jsp needs to use a Third-party tag library, you need to make some configuration in JBuilder to introduce this tag library before developing the welcome.jsp.

Configure a Third-party tag library into JBuilder

Apache Open source organization provides a lot of useful tag library, welcome page welcome.jsp need to use a DateTime tag library from Apache, you can use this tag library in the JSP to provide a variety of time display, download the address is: http:// Apache.justdn.org/jakarta/taglibs/datetime/binaries/jakarta-taglibs-datetime-1.0.1.zip.

The tag library typically consists of two files, one is the class package jar file, and the other is a label description file with a. tld extension. After extracting from the downloaded compressed document, we put the Taglibs-datetime.jar and Taglibs-datetime.tld files under the Engineering directory >/datetimetag directory.

To use a Third-party tag library in your project, you must configure the tag library in JBuilder and refer to it in the project. The configuration tag library is similar to the Configuration class library and is done through the Configure Libraries dialog box. The JBuilder class library and tag library are listed in the left tree in the Configure Libraries dialog box, and the class library is displayed as an icon, and the tag library is displayed as an icon. Here we will configure the DateTime tag library into JBuilder.

1. Tools->configure->libraries->configure Libraries dialog box.

Click on the add in the lower left corner of the Configure Libraries dialog box. button to eject the New Library Wizard dialog box, as shown in the following illustration:


Figure 17 New Library Wizard dialog box

In name, give the library a name: Datetimetag, press OK to return to the Configure Libraries dialog box.

2. Specifies the tag library file.

After returning to the Configure Libraries dialog box, the Datetimetag node appears in the tree on the left because no class library file has been specified for it, as opposed to the other nodes showing a red color, click on the Datetimetag and the library The settings page switches to the Framework label page as shown in the following illustration:


Figure 18 Switching to the framework
Select the user-defined JSP Tag Library option in the Framework dropdown box and click on the add at the bottom right of the tab page ... button, pop-up define the New Tag Library dialog box, as shown in the following figure:


Figure 19 Specifying a description file for the tag library

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.