Add the JSTL to a JSP Web Template

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:

  1. Open the JSP Web template in a text editor.
  2. 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=”” prefix="c" %>
    <%a taglib uri=”” prefix="fmt" %>
    <%a taglib uri=”” prefix="x" %>
    <%a taglib uri=”” prefix="sql" %>
    <%a taglib uri=”” prefix="c_rt" %>
    <%a taglib uri=”” prefix="fmt_rt" %>
    <%a taglib uri=”” prefix="x_rt" %>
    <%a taglib uri=”” prefix="sql_rt" %>;
  3. 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}">;
  4. 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.