You must add JSTL code to a new JSP Web template or edit an exiting JSP Web template to
use the JSTL features in your Web application.
To
add JSTL code to a JSP Web template:
- Open the JSP Web template in a text editor.
- On The line preceding the
<HTML>
tag,
for each functional library that you are adding to the JSP, type the
Namespace for the functional area library you are using in the JSP
Web template: <%a taglib uri=”http://java.sun.com/jstl/core” prefix="c" %>
<%a taglib uri=”http://java.sun.com/jstl/fmt” prefix="fmt" %>
<%a taglib uri=”http://java.sun.com/jstl/xml” prefix="x" %>
<%a taglib uri=”http://java.sun.com/jstl/sql” prefix="sql" %>
<%a taglib uri=”http://java.sun.com/jstl/core-rt” prefix="c_rt" %>
<%a taglib uri=”http://java.sun.com/jstl/fmt-rt” prefix="fmt_rt" %>
<%a taglib uri=”http://java.sun.com/jstl/xml-rt” prefix="x_rt" %>
<%a taglib uri=”http://java.sun.com/jstl/sql-rt” prefix="sql_rt" %>;
- In the appropriate location of the JSP Web template, between
the
<body>
and </body>
tags,
type the tag code. For example: <fmt:formatDate type="both" timestyle="short" value=${now}">;
</fmt:formatDate>
- Save the JSP.
After you create or edit the JSP Web template, you can check
your JSP Web template into the Sterling B2B Integrator database.
This is optional, unless you intend to use your JSP Web template with
Web Extensions. In this case, you must check in your JSP Web template,
so that it can be processed.