Thursday, August 18, 2005

Integrating AJAX with ArcGIS Server - III

Previously, we have looked at the necessary code for our custom magnifier tool. Now lets talk about how to put things together step by step.
1. First, use arcgisant tool to create a MapViewer web application.
2. Deploy the web application in a servlet container and verify that it works fine.
3. Go to this web application root directory and then to its WEB-INF/classes folder.
4. Under the classes folder, create this path: com/esri/arcgis/sample.
5. Put the AgsServlet.java and AgsMap.java files in the sample folder.
6. Compile these 2 java classes. (You need to have servlet and arcgis server libraries in the classpath to compile the code.)
7. Next, we need to map our custom servlet in the web application. Go to WEB-INF folder and open web.xml file.
a) Add these tags to add the servlet:

<servlet>
<servlet-name>AgsServlet</servlet-name>
<servlet-class>com.esri.arcgis.sample.AgsServlet</servlet-class>
</servlet>

b) Add these tags to map the servlet:
<servlet-mapping>
<servlet-name>AgsServlet</servlet-name>
<url-pattern>/AgsServlet</url-pattern>
</servlet-mapping>

8. Refresh the servlet container.

This does it for the configuration of our custom servlet in the web application. Next time, we will talk about how to add the magnifier tool to the jsp page and customize the javascript code for this new tool.

9 Comments:

At 4:52 AM, Anonymous Geographic Information Systems said...

Nice information you give us.

 
At 3:59 AM, Anonymous Accelerate Outsourcing Sales said...

Hi your page is not come in the search, you needs to update this its is a very nice informative blog and people can get much benefits from this blog you needs to put some nice and important information on this blog.
Take care

 
At 2:20 PM, Anonymous splenda recipes said...

Nice information you give us.

 
At 2:28 AM, Blogger hibeyond said...

black boots

Chocolate boots

sand boots

Chestnut boots

gray boots

pink boots

grey boots

pink boots

 
At 6:19 AM, Anonymous pepa prase igre said...

I'm so excited. I really appreciate sharing this great post. Keep up your excellent work.
bojanke za decu
bojanke
gledanje u solju

 
At 3:38 AM, Anonymous banja srbija said...

Excellent post. I want to thank you for this informative read. I will bookmark this site and visit again..
Banje u Srbiji
Banje Srbije

 
At 4:40 AM, Anonymous oranum said...

I'm so excited with this post. I really appreciate sharing this great post. Keep up your excellent work.
online psychics
live psychics

 
At 5:59 PM, Blogger Kzaxcpnd Molluskxbny said...

Years may wrinkle sell WOW Gold the skin, but to give up sell WOW Gold enthusiasm wrinkles the soul. Worry, fear, self-distrust bows the heart sell WOW Gold and turns the spirit back to dust.

 
At 6:05 PM, Blogger Kzaxcpnd Molluskxbny said...

Use your crystal goblets.Do not save your best RS Gold perfume,and use it every time you feel you want RuneScape Gold it. Search for knowledge,read more ,sit on your porch and admire the Cheap Runescape Gold view without paying attention to your needs;

 

Post a Comment

<< Home