Skip to main content link. Accesskey S
  • Log In
  • Help
  • IBM Logo
  • IBM Forms wiki
  • All Wikis
  • All Forums
  • Home
  • Product Documentation
  • Community Articles
  • Learning Center
  • IBM Redbooks
Community Articles Product Documentation Learning Center IBM Redbooks This category All IBM Forms 4.0 documentation IBM Forms Server 4.0 API documentation Custom Search Scope...
Search
  • New Article
  • Share Show Menu▼
  • Subscribe Show Menu▼

About the Original Author

Ryan Nordman
Contribution Summary:
  • Articles authored: 25
  • Articles edited: 25
  • Comments Posted: 0

Recent articles by this author

Dataset Browser Modal Dialog Sample WFS4

This sample demonstrates a technique for showing a large list in an HTML modal dialog using dojo, and pushing selections from the list back into the form using the Javascript API.

Dynamic Multiple Error Messages Using XForms Bind and Alert

This article outlines a technique for developing forms with multiple error messages on a single field. In cases where you would like to present the user with several different error messages depending on the type of validation error being made, this technique uses a minimal amount of code and ...

Multilingual Forms Applications

This article includes a sample form with servlet and will discuss approaches and techniques to develop multilingual forms applications, through two approaches: creating a separate form document for each language, or creating a single form which dynamically changes its labels for each ...

The Expressive Power of XForms Binds and XPath

The goal of this sample is to illustrate some of the expressive power of XForms binds and how an XPath nodeset in a bind is used at runtime to evaluate the result of a bind. In this example the goal is to count the number of occurrences of specific text entries in a homogeneous set of XML ...

Basic XForms Tables Tutorial Part 2: Add/Remove Buttons

This article is meant as a sequel to a previous article on basic XForms Tables. You can read the first article http:www10.lotus.comlddlfwiki.nsfdx04292009040220PMRNOV22.htmhere. The first article outlines how to build a very simple Lotus Forms XForms table with two fields. We will pick ...

Community articleBasic Servlet Sample

Added by Ryan Nordman | Edited by IBM contributor Ryan Nordman on August 5, 2009 | Version 8
  • Edit
  • More Actions Show Menu▼
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars
expanded Abstract
collapsed Abstract
No abstract provided.
Tags: servlets, application, development, framework, samples
This is intended for use as a starting point for forms and servlet development. This is an absolutely stripped bare Lotus Forms Webform Server framework servlet. It would be a great starting point for developing a Lotus Forms servlet with some custom functionality. It is also intended as a learning tool if you want to see what is the absolute minimum code required for a Lotus Forms enabled servlet.

This servlet contains an XFDL form in the WEB-INF directory, which is loaded on the translator server located at localhost (same host machine that is running the application server) when the servlet is run.

Note: This sample requires that you have a version of Webform Server and Websphere Application Server installed.

Installation Notes
  • From Eclipse or Rational Application Developer, import the project interchange file (.zip).
  • The Webform Server framework libraries are not included, you will need to copy them into the lib directory for the servlet to work (this is done so that the servlet is ready for use with any version you have of WFS and also to avoid any potential licensing/legal issues with distributing the framework libraries on this wiki). Follow these steps to install the libraries:

1. Locate the libraries in the Webform server installation directory. These are located in the webform server installation directory in the redist directory. For example, if you used the default installation path, they would be located at: C:\Program Files\IBM\Lotus Forms\Server\3.5\Webform Server\redist
2. Locate the lib directory of your Base Forms Servlet project. In Eclipse or RAD this will be <workspace dir>\BaseFormsServlet\WebContent\WEB-INF\lib
3. Copy the entire contents of the redist directory to the lib directory (you don't actually need the .js files, but they don't do any harm)
4. Rebuild your Eclipse project.

Deploying to WAS
1. In eclipse or RAD, right click on your servlet project and select "Export..."
2. Under the Web category, select "WAR file"
3. Provide a destination directory and note it for later.
4. Click finish to complete the wizard, thereby generating the WAR file.
5. Login to your websphere application server admin console with an administrator account.
6. Go to the Administration page and select Applications > Install New Application
7. Click the install button.
8. Locate your WAR file on disk and upload it (note that you should not install servlets onto the translator server, instead install them on a different server. The default is named server1).

Notes
  • The Lotus Forms API is not used in this example. If you add any code to the servlet which leverages the Lotus Forms API, you need to make sure the API is installed on your application server or put the StreamingAPI.jar in the lib directory of your project.
  • If your webform server translator is located on a different host than your Websphere Application server, you need to modify the web.xml file and change "localhost" to the hostname of your translator server.

  • Edit
  • More Actions Show Menu▼


expanded Attachments (1)
collapsed Attachments (1)
Edit the article to add or modify attachments.
File TypeSizeFile NameCreated On
application/x-zip 9 KB SubmitFormsServlet.zip 4/14/09 4:46 PM
expanded Versions (7)
collapsed Versions (7)
Version Comparison     
VersionDateChanged by              Summary of changes
This version (8)Aug 5, 2009 4:44:23 PMRyan Nordman  IBM contributor
7Aug 5, 2009 4:34:51 PMRyan Nordman  IBM contributor
6Jul 7, 2009 4:50:53 PMJane Rizhanovsky  IBM contributor
5Apr 24, 2009 1:52:59 PMDeanna Drschiwiski  IBM contributor
4Apr 20, 2009 12:10:46 PMDeanna Drschiwiski  IBM contributor
3Apr 15, 2009 5:08:11 PMDeanna Drschiwiski  IBM contributor
0Apr 14, 2009 4:52:54 PMRyan Nordman  IBM contributor
expanded Comments (0)
collapsed Comments (0)
Copy and paste this wiki markup to link to this article from another article in this wiki.
Go ElsewhereStay ConnectedHelpAbout
  • IBM Collaboration Solutions wikis
  • IBM developerWorks
  • IBM Software support
  • Twitter LinkIBMSocialBizUX on Twitter
  • FacebookIBMSocialBizUX on Facebook
  • ForumsLotus product forums
  • BlogsIBM Social Business UX blog
  • Community LinkIBM Collaboration Solutions
  • Wiki Help
  • Forgot user name/password
  • Wiki design feedback
  • Content feedback
  • About the wiki
  • About IBM
  • Privacy
  • Accessibility
  • IBM Terms of use
  • Wiki terms of use