Home  >  Article  >  Database  >  JBuilder2005实战JSP之特殊页面(5)_MySQL

JBuilder2005实战JSP之特殊页面(5)_MySQL

WBOY
WBOYOriginal
2016-06-01 14:06:57833browse

JBuilder

  

  欢迎页面welcome.jsp

  当用户录入正确的密码后,switch.jsp控制JSP页面导向welcome.jsp欢迎页面,在这节里,我们来开发这个welcome.jsp页面。因为welcome.jsp需要使用到一个第三方的标签库,所以在开发welcome.jsp之前需要在JBuilder中作一些配置引入这个标签库。

  将第三方标签库配置到JBuilder中

  Apache开源组织提供了许多有用标签库,欢迎页面welcome.jsp需要使用一个来源于Apache的datetime标签库,可以用这个标签库在JSP中提供各种时间的显示,下载的地址是:http://apache.justdn.org/jakarta/taglibs/datetime/binaries/jakarta-taglibs-datetime-1.0.1.zip。

  标签库一般包括两个文件,其一是类包JAR文件,其二是以.tld为扩展名的标签符描述文件。从下载的压缩文档中解压后,我们将taglibs-datetime.jar和taglibs-datetime.tld文件放到<工程目录>/datetimeTag目录下。

  要在工程中使用第三方的标签库,必须事先在JBuilder中配置这个标签库,并在工程中引用它。配置标签库和配置类库相似,也是通过Configure Libraries对话框来完成。JBuilder类库及标签库都列在Configure Libraries对话框中左边的树中,类库显示为JBuilder2005实战JSP之特殊页面(5)_MySQL 图标,而标签库显示为JBuilder2005实战JSP之特殊页面(5)_MySQL 图标。下面我们来将datetime标签库配置到JBuilder中。

  1.Tools->Configure->Libraries->Configure Libraries对话框。

  点击Configure Libraries对话框的左下角的Add...按钮,弹出New Library Wizard对话框,如下图所示:

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn