Chapter 5. How to develop a web application?

Table of Contents

Overview
Servlet web application
JSP web application
Further information

Overview

Besides using HTML, Javascript and CSS, you can use Java's servlet and/or Java Server Pages (JSP) technology to create web applications in Obix.

A servlet can be written in Obix or Java (or a mixture of both).

A JSP page can currently only be written in Java. But Obix code can be called from any JSP page.

To execute a web application you need to install a Java servlet compliant server (also called a servlet container), such as Tomcat or Jetty.

You can also use Java web frameworks to developing web applications in Obix. Any other Java utility libraries can also be used, because .jar files can be added to an Obix application.

If you want to write client-side code executed in the browser, you can use any Javascript library (such as jQuery or SmartClient).

Let's now see how to develop a Hello world web application, first by using the Java servlet technology, then by using JSP.