Spring-DM Simple OSGi Web Application
Introduction
This application demonstrates the use of web applications (WARs) inside OSGi through Spring Dynamic Modules. You can view static resources (like this page), servlets and JSPs. The next section describes the dynamic pages available in this WAR.Sample content
You can select one of the following links to interact with the servlets and JSPs available in this sample.
Servlets
The application contains two servlets:- Hello OSGi World servlet Simply click on the button below (which will send a a POST request to a hello world servlet).
- A OSGi content serving servlet The servlet sends to the browser the raw content of resources found inside the bundle. This main usage of this servlet is to see, direclty from the web application, the servlet and JSP sources.
Java Server Pages
The sample application provides two types of Java Server Pages: While the servlets/pages are simplistic, they show the main functionality working inside an OSGi platform.Sources
To view the Servlet and JSP sources directly from the browser, use one of the links above. The content itself is served through a Servlet (the Content Servlet below) that sends to the browser the content of the files found in its bundle classpath.- Hello World Servlet
- Resource Serving Servlet
- bare-bone JSP
- tag-based JSP
- Web application web.xml
- WAR OSGi bundle content
Requirements
This sample requires:- an OSGi 4.0+ platform
- Spring-DM 1.1 + dependencies
- Apache Tomcat 5.5.x+
- Apache Jasper 2 Engine
Home |