116 IBM Workplace Forms: Guide to building and integrating a sample Workplace Forms application
4.8.4 Creating a template repository and form storage structure
In Stage 1 we have no other storage medium as file system (see Figure 4-47). To make it
available to the application, we will create in the WebContent folder of the project a sub-folder
named Redpaper_Demo with subfolders as named in the supplied folders.properties file:
Redpaper_Demo/Form_Templates
Redpaper_Demo/Manager_Forms
Redpaper_Demo/Director_Forms
Redpaper_Demo/Approved_Forms
Redpaper_Demo/Sales_Rep_Forms
Redpaper_Demo/Cancelled_Forms
Figure 4-47 Form storage directory Redpaper_Demo in WebContent folder
In the folder Redpaper_Demo/Form_Templates, paste the created forms. (See Figure 4-48.)
Just to have a real list, we pasted some arbitrary forms in the directory as well. The form we
will use at this stage is named Redpaper_Forms_Sample_v10.xfdl.
Figure 4-48 Same forms folder inside the project structure
This folder will make up the file storage in the directory
<WASRoot>/installedapplications/<applicationName> on the application server. The real
paths used for storage will differ in the production system and the test server running in RAD6
IDE. The code provided here is valid for both cases, but the code provided in the JSPs to
display the file list and generate appropriate links will contain some if/then statements to
match both environments. For details on this topic, see the next sub-chapter.

Get IBM Workplace Forms: Guide to Building and Integrating a Sample Workplace Forms Application now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.