ArcGIS Web Project Guide for NetBeans


Summary
The purpose of the Netbeans Plugin for the ArcGIS Java Web Application Developer Framework (ADF) is to provide you with a series of powerful tools that will enable them to create Web applications for ArcGIS for Server Java using drag-and-drop functionality. You can use the plug-in to quickly create projects, add tasks, and configure layers to suit your needs. These application projects are fully functioning in their own right, or they can provide a jump start to your development process.

The ArcGIS for Server plug-ins for NetBeans provide several templates and projects to help you quickly get started building applications and running samples. If you have not already installed the plug-ins, see Installing ArcGIS Plug-ins.

Creating an ArcGIS Web project

This sample ArcGIS Web Map Application uses NetBeans and displays a map, toolbar, table of contents, map overview, results, result details, and an empty task pane. 
 
The following steps detail how to create an ArcGIS for Server for Java Web application project in NetBeans:  
 
  1. Open the NetBeans integrated development environment (IDE) workspace.
  2. Navigate to File>New Project. The New Project dialog box appears.
  3. Under Categories, double-click the Web node and select Web Application in the Projects box. 
  4. Click Next at the bottom of the New Project dialog box. See the following screen shot:
 
 
  1. In the New Web Application dialog box that appears, type a name for the project in the Project Name text box as shown in the following screen shot: 
 
In NetBeans 6.5, the steps to create a Web application differ slightly as the dialog box separates Server Settings from Name and Location as shown in the following steps and screen shots: 
Provide the details for the name and location of your project.
Use a separate dialog box to enter the server settings.
  1. In the list of Frameworks, click the check box for ESRI Java ADF. The Esri Java ADF configuration options appear in the bottom part of the dialog box.
 
 
  1. Choose the radio button option for Web Mapping Application.
  2. Click the GIS Resources tab, and double-click the Add GIS Server item in the Available Services drop-down box on the left. The Add GIS Server dialog box appears.
  3. From the drop-down list, select the type of GIS (geographic information system) resource you want to add, fill out the details of that resource, and click OK to add the GIS resource.
  4. Click the plus symbol to expand the list of resources available on the selected GIS server, and double-click the resource you want to add to the Web application. The resource appears under the Web context under Selected Services as shown in the following screen shot:
 
 
  1. Continue to add resources to the Selected Services box. When you have finished adding resources, click the Finish button. The new Project appears in the project pane, and the mapviewer.jsp file displays in the text editor window as shown in the following screen shot:
 
 
  1. Right-click the project name (in this case MyWebApplication) in the project pane and choose Run the project from the menu. A browser launches, and the Web application displays with the chosen resource as shown in the following screen shot: