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).
META-INF/context.xml to match the location of the database on this system,
drops the table students, creates a new students table and
fills it with a few test student records using ooRexx.
JSTL and the test student records are from a
seminar paper by Andreas Burgstaller written in the winter semester of
2020/21 at WU Vienna. The jsp-examples below starting with
ooRexx do the same with ooRexx scripts as the standard taglib library examples, and
sometimes a little bit more... 😉
Introductory article on the ScriptTagLibs:
[1] Burgstaller, A: Apache Tomcat Cookbook (JSP, MySQL, STL). URL (2021-09-06): wi.wu.ac.at/rgf/diplomarbeiten/#sem_202102_02
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:
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.
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.