How to use
See How to use ArcGIS 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.
Hyperlink
- This sample shows how to build hyperlink tool in a Web ADF Java 10.0 application.
- Create and start an ArcGIS map server object. The sample is configured to use a server object named 'usa' from the map configuration file at %AGSDEVKITJAVA%\java\samples\data\mxds\usa.mxd.
- There are two ways to build the sample. You can either use ArcGIS Ant or Eclipse plugin. To use Ant, at command line, browse to %AGSDEVKITJAVA%\java\samples\hyperlink, type arcgisant build, 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 into Tomcat.
- The other way to build is sample is to use Eclipse IDE. Open Eclipse, File - New Project - ESRI Templates - Web ADF Samples.
- Choose the Hyperlink
- Go through the wizard to finish building the sample.
- Run the sample web application on server.
- You can also export the application as war file and deploy to other supported application server.
- Open http://<host>:<port>/<appname>/hyperlink.jsf
- Click 'Hyperlink'
- Click on a state, a wiki page of the state pops up. Make sure your browser allows pop ups.
Download the files for Java
JavaSource\com\esri\customtask\HyperlinkRenderer.java | hyperlink renderer code. |
JavaSource\com\esri\customtask\HyperlinkTask.java | hyperlink task code. |
Development licensing | Deployment licensing |
---|---|
Server | Server |