Customizing the CW Interface — JSP, XSL and JS

The Contenta Web Java Server Pages (JSP files) consist of HTML markup along with code that separates the page logic from the static elements (the actual design and display of the page) which makes the HTML more functional. The code is executed on the server and the result is a dynamic page that is returned to the client browser.

Some of the JSP files are just JSP with code and HTML as described above, others make use of XML/XSL. These Java Server Pages get data from the Contenta Server via the Contenta API and converts the data to XML. JSP uses an XSL style sheet to transform the XML data (via XSLT) into HTML for display to the user.

For example, the JSP file for project allocation view is CWProjAllocView.jsp. This JSP makes calls to the Contenta Server through the Contenta API. One of the calls is to convert the data to XML. JSP uses the CWProjAllocView.xsl style sheet to transform the data to HTML for display.

In addition the HTML that is generated from the JSP pages makes use of Javacript (.js) files. Contenta Web uses Ajax to provide a dynamic interaction with the end user.