4.1

Table Of Contents
name="homePlanet"/>
<s:submit type="input" key="save.button"/>
</s:form>
</div>
4 Create a Struts configuration file that implements the Struts framework to pass to the configuration server
the configuration information that the user enters.
The Struts configuration file in the solar system example implements the OpenSymphoyOpenSymphony
XWork2 ActionSupport class to pass the results of the ConfigureSave action to the Struts framework. The
ConfigureSave action calls the SolarSystemConfigureAction.save() method.
<action name="Default" class="com.opensymphony.xwork2.ActionSupport">
<result name="success" type="chain">Configure</result>
</action>
<action name="Configure"
class="com.vmware.orchestrator.api.sample.solarsystem.config.SolarSystemConfigureAction">
<result name="success">/WEB-INF/pages/configure.jsp</result>
</action>
<action name="ConfigureSave"
class="com.vmware.orchestrator.api.sample.solarsystem.config.SolarSystemConfigureAction"
method="save">
<result name="success">/WEB-INF/pages/configure.jsp</result>
</action>
5 Copy all of the required JAR files in a directory named lib in the Web application directory.
You must include the JAR files that contain the implementations of the configuration adapter and actions,
and JAR files for any other technologies that configuration implementation uses.
6 Create a Web application archive to contain the Web application files.
A WAR file is a JAR file that you rename to .war.
In the solar system example, the configuration Web application files are stored in WAR file named
o11nplugin-solarsystem-config.war.
You created a Struts-based Web application that contains all of the Web application files and the Java
implementations of the configuration adapter and action.
What to do next
Map the application and the plug-in implementation to Orchestrator objects in the vso.xml file.
Contents of the Solar System Configuration WAR File
You add a configuration tab to the Orchestrator configuration interface by creating a Web application archive
(WAR) file that contains the implementations of the configuration adapter and configuration actions, the layout
of the tab, and the Struts configuration files.
The DAR file of the solar system plug-in contains a built WAR file for the solar system configuration tab. You
can also examine the files of the solar system configuration Web application in the bundle of source files of the
solar system plug-in.
The solar system DAR file contains a WAR file named o11nplugin-solarsystem-config.war.
If you modify the source files of the solar system configuration WAR file, you must rebuild the DAR file of the
solar system plug-in by using the Ant build tool. Rebuilding the plug-in DAR file rebuilds the WAR file of the
solar system configuration tab. See “Build the Solar System Application and Plug-In,” on page 203.
Table 7-6 lists the directories and files that the built WAR file for the solar system configuration tab contains.
Chapter 7 Developing Plug-Ins
VMware, Inc. 193