4.1

Table Of Contents
What to do next
Create a Struts-based Web application to add a tab to the Orchestrator configuration interface.
Create a Struts-Based Web Application to Add to the Configuration Interface
The tab that you add to the Orchestrator configuration interface is an Apache Struts-based Web application.
You define the layout of the page by using HTML or JavaServer Pages (JSP) and add actions to the page by
implementing the Struts framework.
To add a configuration tab to the Orchestrator configuration interface, you must include a Web application
archive (WAR) file in the DAR file of the plug-in.
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.
n
o11nplugin-solarsystem-config\src\main\webapp\index.jsp
n
o11nplugin-solarsystem-config\src\main\webapp\WEB-INF\web.xml
n
o11nplugin-solarsystem-config\src\main\webapp\WEB-INF\pages\configure.jsp
n
o11nplugin-solarsystem-config\src\main\resources\struts.xml
You must be familiar with Web application development technologies, including the Struts framework and
JSP. See the Apache Struts documentation for information about Struts. For details of all the directories and
files that the WAR file contains, see “Contents of the Solar System Configuration WAR File,” on page 193.
Prerequisites
n
Implement the plug-in adapter and factory interfaces.
n
Create the configuration adapter and configuration action implementations.
Procedure
1 Create an index page for the configuration tab that implements the JavaServer Pages Standard Tag Library
(JSTL).
The index page must refer to the JSTL definition.
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
2 Create a Web application definition XML file that provides information about the plug-in to the
Orchestrator configuration server.
The Web application definition file references the XML schemas, locates the index page, accesses resource
files, and implements security.
3 Create a JSP page that defines the layout and contents of the configuration tab.
The configuration tab can include any types of buttons, forms, lists, or menus that JSP provides.
The solar system configuration tab includes a button that the user can use to set the
plutoClassifiedAsAPlanet property to designate Pluto as a planet or a dwarf planet, a list from which
they can select their home planet from the allPlanets properties list, and a save button that calls a Struts
action named ConfigureSave.
<div id="c_content">
<s:form action="ConfigureSave" method="POST" validate="true">
<s:radio key="select.pluto.classify.text" name="plutoClassifiedAsAPlanet"
list="plutoClassifyList"/>
<s:select key="select.home.planet" list="allPlanets" listValue="name" listKey="id"
vCenter Orchestrator Developer's Guide
192 VMware, Inc.