Documentation

Java Server Pages Integration

Use the following code for your JSP integration.

JSP Source with JAR file

Here is how you call it on the page directly:

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
 <%@ taglib uri="http://www.kitgui.com/tlds/KitGUI" prefix="KT" %>
<!DOCTYPE html>
<html>
     <head>
         <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
         <title>Insert title here</title>
     </head>
     <body> 

         <!-- make sure to replace with your actual CMS Account Key -->
         <h1><KT:KitGUI cmsKey="00000000000000000000000000000000"
            contentID="my-page-title" contentType="INLINE" cache="false" /></h1>
         <div><KT:KitGUI
cmsKey="00000000000000000000000000000000"
            contentID="my-page-content" contentType="HTML" cache="true"/></div>
     </body>
</html>

This gets more interesting when you use URL Rewriting techniques and define your content IDs based on the URL prefix so you quickly have virtually infinite templated pages.

Authored by Vijay Kumar (odesk handle vijayblp)