Adding Web Pages

Web pages are implemented using regular Web components: HTML files, JSP files, CSS files, etc. Those resources are handled on server using Java HTTP Servlets.

You can extend MDWorkbench Server with additional web pages:

  1. Create a plug-in to hold your extension.
  2. Edit the plug-in MANIFEST file.
  3. Select the Dependencies tab and add in the Required Plug-Ins section the following plug-in: org.eclipse.equinox.http.registry
  4. Select the Extensions tab, click Add..., select the org.eclipse.equinox.http.registry.resources extension point and click Finish.
  5. Select the org.eclipse.equinox.http.registry.resources extension and right-click New > resource.
  6. Enter an alias, e.g. /web/mycompany
  7. Enter an base name, e.g. /WebContent
  8. Save the MANIFEST file.
  9. Create a folder (e.g. WebContent) at the root of your plug-in. Create Web resources in this folder (HTML, CSS, Javascript, etc.) to design your web page. The name of the folder must match the previous chosen base name.

Related tasks
Creating Plug-Ins
Adding a Custom Launch Page