Awesome
Ada Servlet
Ada Servlet allows to create web applications using the same pattern as the Java Servlet (See JSR 154, JSR 315).
The Ada Servlet library is used by the Ada Server Faces framework, the OpenAPI Ada library and Ada Web Application to provide server web requests.
Version 1.7.1 - Aug 2024
- Cleanup build environment to drop configure
Using with Alire
If you are using Alire in your project, run the following command within your Alire project to use the library:
alr with servletada
For the web server, you have the choice between:
Choose one of the following crates:
alr with servletada_aws
alr with servletada_ews
Using without Alire
If you don't have Alire or want to build and install the library
on a specific place, run a setup
command to configure the build as well as installation
directory.
The HAVE_ALIRE
configuration allows you to disable the build with Alire,
the HAVE_AWS
controls the support for AWS and the HAVE_EWS
controls the support for EWS.
make setup BUILD=debug PREFIX=/build/install HAVE_ALIRE=no HAVE_EWS=no HAVE_AWS=yes
Since this build method does not verify that all dependencies are met, make sure that you
have already built and install the following components and they are available to gprbuild
through ADA_PROJECT_PATH
if needed:
Then build, run the unit tests and install by using:
make
make test
make install
To use the installed libraries, make sure your ADA_PROJECT_PATH
contains the directory
where you installed the libraries (configured by the PREFIX=<path>
option in the setup phase).
The installed GNAT projects are the same as those used when using Alire.
Samples
The samples can be built using:
make samples
or
cd samples
alr build
Documentation
The Ada Server Faces sources as well as a wiki documentation is provided on: