Sample 32225: How to Build a Web Application Project in SAS® AppDev Studio 3.3
Overview
This sample demonstrates how to build a Web application project in SAS AppDev Studio 3.3. The instructions assume that you have already completed the new workspace setup steps that were performed after the installation.
Create a New SAS Web Application Project
- Open SAS AppDev Studio 3.3 by using the Start menu shortcut that was created by the installation.
- If you are not in the Java perspective, select Window → Open Perspective → Other.
- In the Open Perspective dialog box, select Java EE (default), and then click OK.
- Select File → New → Project.
- Expand SAS AppDev Studio, select SAS Web Application Project, and click Next to launch the New SAS Web Application Project wizard.
- Enter a project name.
- Click Next to open the Template Section page. Templates generate project files that speed up the development process. You can choose to use a template or not. Both options are explained next.
Note: If you are following instructions from another sample, then be sure to select the template that it specifies.
- If you do not want to use a template, then leave the Add Template Content option unselected and click Finish to exit the New SAS Web Application Project wizard.
- If you do want to use a template, then select the Add Template Content option, select a template, click Next, and follow the rest of the wizard steps. Be sure to fill in any user names or passwords, and to test connections if possible. For demonstration purposes only, the image below shows the Information Map Viewer Servlet (uses SAS Visual Data Explorer) template selected.
For complete instructions on the two primary template categories, select one of the links below.
Templates that use a JDBC connection
The following instructions assume that you have decided to build your Web application project by using a template that is based on a JDBC connection.
- In the Template Configuration Parameters step, you can optionally change the content name. Click Next when you are done with this step.
- In the JDBC Connection Properties step, enter the connection information for your server. After entering all the information, be sure to use the Test Connection button. This will verify if you have entered your connection information correctly. Once the connection test is successful, click Next.
- In the JDBC Query Specification step, enter a JDBC query. After doing this, use the Submit Query button to test the query, and verify that it returns the columns that you expect. Click Next when you are done with this step.
- In the Servlet Class Parameters step, optionally change the default class name or package, and then click Next.
- In the Servlet Deployment Descriptor Parameters step, optionally change the servlet name or URL pattern, and then click Finish. The project files will be generated, and ready to use.
Templates that connect to the SAS metadata server
The following instructions assume that you have decided to build your Web application project by using a template that uses a metadata server connection.
- In the Template Configuration Parameters step, you can optionally change the content name. Click Next when you are done with this step.
- In the Foundation Services Settings step, enter the connection information for your metadata server. Be sure to use the Test Connection button, to verify the settings are correct. To choose a different set of Foundation Services that exist on the server, click the Advanced button. Click Next when you are done with this step.
- In the Server Settings step, enter the machine names for your servers, and the login information for the user. Click Next when you are done with this step.
- In the Servlet Class Parameters step, optionally change the default class name or package, and click Next.
- In the Servlet Deployment Descriptor Parameters step, optionally change the servlet name or URL pattern, and then click Finish. The project files will be generated, and ready to use.
Additional Documentation
For a list of available documentation for SAS AppDev Studio, see http://support.sas.com/documentation/onlinedoc/ads/index.html
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
These sample files and code examples are provided by SAS Institute
Inc. "as is" without warranty of any kind, either express or implied, including
but not limited to the implied warranties of merchantability and fitness for a
particular purpose. Recipients acknowledge and agree that SAS Institute shall
not be liable for any damages whatsoever arising out of their use of this material.
In addition, SAS Institute will provide no support for the materials contained herein.
Date Modified: | 2008-06-04 16:25:34 |
Date Created: | 2008-05-23 13:18:41 |
Operating System and Release Information
SAS System | SAS AppDev Studio | Microsoft® Windows® for x64 | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Advanced Server | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Datacenter Server | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Server | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows 2000 Professional | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows NT Workstation | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Datacenter Edition | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Enterprise Edition | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows Server 2003 Standard Edition | 3.3 | | 9.1 TS1M3 SP4 | |
Microsoft Windows XP Professional | 3.3 | | 9.1 TS1M3 SP4 | |
Windows Vista | 3.3 | | 9.1 TS1M3 SP4 | |