SAS® AppDev Studio™ 3.0 Developer's Site
|
Web Report Viewer |
|
 |
 |
|
Data Source: Information Map
Please install the latest
webAF template updates prior to building this example.
For more information about the server-side example templates used by this example, see
Web Application Example Templates and
Built-in Web Application Templates and Options.
The following example is not meant to be a complete web application, rather it is to show how to use
a particular component(s). The example does not address the issue of immediately freeing up resources
when the user navigates off the web application or closes the web browser. Any necessary resources created
in the example will stay around until the associated HTTPSession times out. If this example were used in a
multi-user environment, it is possible to exhaust the available resources until HTTPSessions time out and
free up their associated resources.
Step 1: Create a project in webAF
- Create a new project named
WebReportViewer.
- Select Web Application from the webAF Projects list.
- Accept the defaults as you go through the Web App wizard until you have reached step #4 of the wizard.
At this step you will need to select Examples in the radio box titled Display list for.
Choose Report Viewer Servlet from the list box titled Type of initial content.
- Continue accepting defaults as you complete the Web App wizard.
Step 2: Set up access to the data source
- Open the sas_metadata_source_omr.properties file from the Files Tab
of the Project Navigator. Edit the value of the omr_password property.
For more information about String encryption, see the API
documentation.
- Open the sas_remote_metadata_source_omr.properties file from the Files
Tab of the Project Navigator. Edit the value of the omr_password property.
- Open the web.xml file from the Files Tab of the Project Navigator.
Edit the init-param value of the metadata-password for the ReportViewerExampleControllerServlet.
Step 3: Add components to the JSP file
The default JSP file will contain a remote file selector component
that will allow selection of a SAS report.
Step 4: Finish the project
- Build the project.
- Start the Java Web server.
- Execute in browser.