Skip to main content
Kinetic Community

Technologies Used in Kinetic Request CE bundles

Overview

In the introduction we stated that many technologies can be utilized in the creation of a custom bundle.  JSP's are currently one of the most commonly used technologies for bundle development.  JSP’s have the ability to run loops and conditionals similar to JavaScript.  To do this JSP's use tags that look very similar to HTML code and like HTML; these tags required an opening and closing tag.  Collectively they are referred to as JSTL which stands for JavaServer Pages Standard Tag Library.  

JSTL allows a developer to employ a single, standard set of tags.  Some of the most common tags are <c:if>, <c:forEach> and <c:import>, but there are many more tags to explore.  For more information about JSTL tags visit:

https://www.tutorialspoint.com/jsp/jsp_standard_tag_library.htm

Like HTML tags JSTL tags can have attributes.  The link above will help you find the optional and required attributes that each tag has.  An examples of an attribute for the <c:if> tag is the test attribute.  The test attribute is a required attitude for the <c:if> tag and is configured like this <c:if test="1 eq 1">.  The value of the test attribute is an expression that must evaluate to true or false.  If the test is true the code between the opening and closing <c:if> tags will be executed; should the expression evaluate to false the code is skipped.

Another syntax in a JSP is called EL or expression language.  In a JSP ${ } will define the use of expression language.  Expressions can be a way to gain access to Java Models.  Whole college courses are devoted to understanding Models and Object Orientated Programming, we will not dive deeply into what a Java Model is, but basically Models have methods.  We use a Model to create an Object, we might call this an instance, the methods on the Model provide the ability to access properties on an Object.

 Lets say we retrieve a Form Object and assign it to the variable called myFormObject.  Let say we know ahead of time myFormObject has the name "Order Laptop" and a slug "order-laptop."  We would say that myFormObject has a name property and a slug property.

In this example we have an instance of the Form Model.  This means we have a Form Object (or put another way we have an Object that has the type Form) and we are calling it myFormObject.  Some methods on the Form Model are .getName() and .getSlug().  This would allow us to get the name and slug of myFormObject like this:

  • myFormObject.getName() which would return "Order Laptop"
  • myFormObject.getSlug() would return "order-laptop."

Kinetic Request CE has many Models exposed to the bundle developer.  Kapp, Category, Form and Submission are some of the most used.  Each Model has many properties exposed for use by the developer.  To find more information about Kinetic Request CE's API (api stands for application program interface)

  1. From the Management Console select the help dropdown in the upper right-hand corner.  
  2. Choose the Reference Docs option from the list.  
  3. From the Reference Docs window select the Bundles panel.