Add a ReportViewer Servlet Template to the Project

Add the ReportViewer Servlet Template

This section adds a template to an existing project. Because the template uses the same Tomcat server, server parameters, and Welcome Page to run the ReportViewer Servlet, you need to provide only the information collected when adding the template.
  1. Select Filethen selectNewthen selectOther.
  2. Expand SAS Appdev Studio, select Add Template Content to Project, and click Next.
  3. Expand SAS Java Web Application and SAS Web Application Examples.
  4. Select Report Viewer Servlet (uses SAS Web Report Viewer and SAS WIP), and click Next.
  5. Accept the Template Configuration Parameters by clicking Next.
  6. Accept the SAS Web Infrastructure Platform Information by clicking Next. The proper BI Server should already be selected.
  7. Accept the Servlet Class Parameters by clicking Next.
  8. Accept the Servlet Deployment Descriptor Parameters by clicking Finish.

Restart the Server and Run the Application

  1. From the Servers View, stop the server (do no use Restart). Wait until the server State is Stopped.
    For why you should avoid the Restart command, see the Tomcat Shutdown Issue.
    Stop the Server
  2. From the Servers View, start the server.
  3. In the Project Explorer, right-click MyProject and select Run Asthen selectRun on Server.
  4. Ensure that the correct server is selected and click Finish.
  5. Log on to the BI server.
  6. The Welcome Page is displayed with links for both added templates: the original JDBC TableView Servlet, and the new ReportViewer Servlet.
    Welcome Page with Two Examples
  7. Click the link for the ReportViewer Servlet.
    ReportView Servlet Results
  8. If available, navigate to a report (a file ending with .srx), and select it.
    If you are running AppDev Studio 4.4 and have not applied maintenance, see the AppDev Studio Migration Guide for information about restoring back link behavior.