Purpose

This webapp demonstrates creating web applications exploiting RDBMS (relational database management systems) via JSTL (Java Standard Tag Library) and via CGI (Common Gateway Interface) created by a Business Administration student (Andreas Burgstaller) at WU Vienna by February 2021 [1]. In addition this sample webapp adds the same functionality without JSTL, but programmed in the easy to learn and easy to use programming language ooRexx (open object Rexx).

Database: the attribute url in META-INF/context.xml (source) uses ${catalina.base}, which Tomcat replaces with the folder of your Tomcat (myTomcat): the database data/test.db of this web application works right away. ooRexx_reset_database.jsp (source) recreates the students table from scratch and fills it with student test data.

Hint: the Java Standard Tag Library (JSTL samples use jstl/core and jstl/sql) and SQLite (the JDBC driver includes the binaries for all major operating systems) come from myTomcat/lib, where installTomcat.rex put them (this version of the web application does not carry its own copies in WEB-INF/lib; changed 2026-11-29).

Java Standard Tag Library (Core, SQL), ooRexx

Articles

Introductory article on the ScriptTagLibs:

Student's work

[1] Burgstaller, A: Apache Tomcat Cookbook (JSP, MySQL, STL). URL (2021-09-06): wi.wu.ac.at/rgf/diplomarbeiten/#sem_202102_02

Install ooRexx Support

ooRexx (open object Rexx) is an open-source, dynamically typed, caseless, message based programming language, originally developed by IBM which handed the code over to the non-profit special interest group Rexx Language Association which open-sourced ooRexx and has been maintaining it.

Installation instructions, if you want to use ooRexx on your computer and/or on Java based web servers like Apache Tomcat or Eclipse jetty:

  1. In order to allow JavaEE/JakartaEE servlet containers to use other languages than Java, download the ScriptTagLibs Java archive from https://sourceforge.net/projects/bsf4oorexx/files/Sandbox/rgf/taglibs/ (as of 2021-04-11 use the latest, stable beta version from https://sourceforge.net/projects/bsf4oorexx/files/Sandbox/rgf/taglibs/beta/). For JavaEE (e.g. Tomcat 9 or earlier, javax. namespace) download javax.ScriptTagLibs.jar, for JakartaEE (e.g. Tomcat 10 or later, jakarta. namespace) download jakarta.ScriptTagLibs.jar; place the Java archive in the shared library directory, e.g. in CATALINA_HOME/lib for Tomcat, then stop and restart Tomcat; alternatively in the webapp's directory WEB-INF/lib.

  2. ooRexx can be downloaded from https://sourceforge.net/projects/oorexx/ (as of 2021-04-11 use the latest, stable ooRexx 5.0 beta version which can be downloaded from https://sourceforge.net/projects/oorexx/files/oorexx/5.0.0beta/).

  3. In order to use ooRexx from Java the ooRexx/Java bridge BSF4ooRexx needs to be installed (as of 2021-04-11 get the latest, stable BSF4ooRexx beta version which can be downloaded from https://sourceforge.net/projects/bsf4oorexx/files/beta/20200928/). After installation locate the file BSF4ooRexx\bsf4ooRexx-v641-yyyymmdd-bin.jar from your CLASSPATH environment variable and copy it to the shared library directory, e.g. CATALINA_HOME/lib, then stop and restart the Web container, e.g. Tomcat. This jar file allows the Java scripting framework and Apache BSF to use ooRexx as a Java scripting language.


Rony G. Flatscher, 2021-04-11 - 2021-09-08 (WU, Vienna/Austria, Europe)