ArcGIS Server Simple


Purpose
This sample is a simple map viewer—a stripped down version of the AGS viewer sample, it has only zoom in, zoom out, and full extent tools, and a map.

How to use

See How to run the Java Server ADF samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

ArcGIS Server Simple
  1. There are two ways to build this sample: you can use either ArcGIS Ant or the Eclipse plug-in. To use Ant, at the command line, browse to %AGSDEVKITJAVA%\java\samples\ags_simple, type arcgisant build, and follow the command prompt to finish the build. There will be a directory called build under the sample root folder; inside there will be a .war file. Deploy the .war file to Tomcat.
  2. The other way to build the sample is to use Eclipse. Open Eclipse, File>New Project>ESRI Templates>Web ADF Samples.
  3. Choose ArcGIS Server Simple.
  4. Use the wizard to finish building the sample.
  5. Run the sample web application on the server.
  6. You can also export the application as a .war file and deploy it to other supported application servers.
  7. After deployment, access the sample by typing the uniform resource locator (URL) (for example, http://[host]:[port]/[samplename]) in a web browser.


Download the files for Java
map.jsp The page with a map, zoom in, zoom out and full extent tools.
faces-config.xml Configuration file that describes the resources and functionalities for the application.




Development licensing Deployment licensing
Server Server