SAS 9.1.3 Integration Technologies » SAS Web Infrastructure Kit: Developer's Guide


Developing Custom Portlets
Development Steps
Creating a Deployment Descriptor
Creating Display Resources Files
Developing the Presentation JSP Page
Creating Action Classes
Implementing Portlet Help
Creating a PAR File
Use Cases
Simple Display Portlet
Localized Portlet
Portlet Template (Editable Portlet)
Remote Portlet
Tips and Best Practices
Using the Portlet API
Sample Portlets
Localized Display Portlet (Welcome)
Interactive Form Portlet (FormExample)
Portlet Template, or Editable Portlet (DisplayURL)
Web Application (HelloUserWikExample)
Remote Portlet (HelloUserRemote
Portlet
Sample: Web Application (HelloUserWikExample)

Step 1: Create the Directory Structure

The following directory structure was used to create the HelloUserWikExample application:

Directory structure for Web application

This directory structure will be used in Step 6 to create a WAR file for the application. The structure includes the following directories and subdirectories:

Directory Contents
app_work (root) This directory serves as a development area for the Web application.
/jsp
This directory contains the display page called app.jsp.
/WEB-INF This directory contains the Web application deployment descriptor file. The name of this file must be web.xml.
/WEB-INF/conf This directory contains the services properties files, which point to the locations of definitions for locally and remotely deployed SAS Foundation Services.
/WEB-INF/lib This directory contains the JAR files that are used by the JSP page.

This directory should contain all the JAR files that are located in the portal's Portal/WEB-INF/lib directory.