以下是一个样本 JSP 页面,与 VCT 有关的标记是以
粗体显示的:
<HTML>
<HEAD>
<%@ taglib uri="/WEB-INF/lib/sample.jar" prefix="vct" %>
<%@ page
language="java"
contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"
%>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM® WebSphere® Studio">
<META http-equiv="Content-Style-Type" content="text/css">
<LINK href="theme/Master.css" rel="stylesheet" type="text/css">
<TITLE>index.jsp</TITLE>
</HEAD>
<BODY>
The current date and time is:
<vct:date/>
</BODY>
</HTML>