While Equinox can be setup to run servlets and JSPs in a variety of ways, the technique for writing the applications is the same. Use the steps here to create your application and then one of the server setups detailed in the Server-side quick start guide to configure and run your server.
The server application takes the form of static content, servlets and JSPs. You can use any combination of these.
com.example.http.application.web_files and putting your files there.
<plugin>
<extension point="org.eclipse.equinox.http.registry.resources">
<resource
alias="/files"
base-name="/web_files"/>
</extension>
</plugin>
In the extension above, the alias attribute locates the resources in URL space and the base-name
attribute describes where (in your bundle) the resources are located. So for example the file index.html would
live inside the com.example.http.application bundle in the web_files folder and would be accessed
using the URL http://localhost/files/index.html.
<extension point="org.eclipse.equinox.http.registry.servlets">
<servlet
alias="/test"
class="com.example.servlet.MyServlet"/>
</extension>
In the extension above, the alias attribute locates the servlet in URL space and the class
attribute identifies the class that implements the servlet. So for example the servlet MyServlet would be accessed
using the URL http://localhost/test. Note that you can add any number of <servlet> elements in the
one extension.