SAS AppDev Studio web
application development is as flexible as you need it to be. You can
add to a project your code and third-party classes or tag libraries
such as Apache Struts or JavaServer Faces. You can also add a JAR
file of Java utility classes to a web application's
\WEB-INF\lib
directory.
SAS Web Application
Projects also support the SAS Java Components and the SAS Web Infrastructure
Platform, which includes features such as the Logon Manager, themes,
and SAS Platform Services. This support is achieved by adding to the
project static content, Eclipse Web Tools Platform facets (
www.eclipse.org/webtools/), and JAR
files from the SAS Versioned Jar Repository.
The static content can
include configuration information, such as declarations in
web.xml
,
other configuration files, and also file resources that are served
by the web application.
Facets are a feature
of the Web Tools Platform, and define functionality that can be added
to a project. Two facets are added to every SAS Web Application Project:
the “SAS Java Components” facet and the “SAS
Web Infrastructure Platform” facet. (The “SAS Java Components”
facet is the SAS 9.4 equivalent of the “SAS Web Module with
WIK” facet.) Facets are versioned, and the 9.4.0.0000 version
of the SAS Java Components and SAS Web Infrastructure Platform facets
corresponds to the initial release of SAS 9.4. AppDev Studio 4.4 for
the first maintenance of SAS 9.4 uses version 9.4.1.0000 facets. You
can view the facets of a SAS Web Application project by opening the
project’s Properties and selecting
Project Facets.
In AppDev Studio 4.4,
the SAS Web Application Project wizard always adds both facets to
a new SAS Web Application project. Neither facet can be removed from
the project. This means the SAS Web Application Project wizard cannot
be used to create a SAS Web Application project if you do not want
to include the “SAS Web Infrastructure Platform” facet.
For a process to create a SAS Web Application project with only the
“SAS Java Components” facet
see Creating a SAS Web Application That Does Not Use the Web Infrastructure Platform.
The SAS Versioned Jar
Repository is attached to the project and adds the JAR files needed
to support the two included facets. The JAR files added to the project
by the SAS Versioned Jar Repository are also included in the application’s
\WEB-INF\lib\
directory.
You can view these included JAR files by opening the project’s
SAS Repository.
See Opening the SAS Repository Properties Editor.
In addition to the SAS
Repository, there is also a SAS Tooling library included in the build
path of the project. This library includes a JAR file that provides
classes that are needed at only build time, such as the annotation
classes. Because these classes are not needed at run time, this JAR
file is not included when the project is deployed or exported to
a WAR file.