Welcome to the Sample Servlet

The following sample is provided to show an application developer how to extend the Webform servlet (class name PureEdgeServlet) and to help them develop their own IBM® Workplace Forms(tm) Server - Webform Server enabled web applications.

The sample application uses a viewForms.jsp JSP page and a FormHandler Servlet. Both of these use a FileUtilities class that handles all the file related activities.

The viewForms.jsp page browses a given directory and allows forms to be viewed either as XFDL in a Workplace Forms Viewer or as HTML in a web browser. When serving a form, the application detects whether the Viewer is installed on the client computer and sends the appropriate file format (html or xfdl).

Once you open a form, you can complete and submit the form back to the server. Submitted forms are stored in a submissions directory, and can be accessed and updated at any time.

Click here to start the web application.

Click the following links to see their source code.
      ViewForms.jsp
      FormHandler.java
      FileUtilities.java