• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 351
  • Last Modified:

How to get data from java program into a URL

Dear Experts
A couple of months ago I asked the following question:

"I have to develop a program that can display the sites on a map where certain plants have been found.  How do I start doing this in Java. It has to fit into a Java Swing application.
The data will come from a Access Database and I know how to make contact to Access.
Looking forward to your answer"

and I got the answer from Doug:

"I would suggest using Google maps to display the location of the plants (http://today.java.net/pub/a/today/2006/10/25/integrating-google-maps-into-web-application.html)
coupled with a component for showing HTML within the Swing app:

I have now placed the HTML code  implementing the Google maps in a html-file , and clicking this file actually opens a Google map with markers on it.

Now I would like to have some assistanc on how to send the coordinates for the markers (red spots on the map) from the java program to be implemented in the Google maps?

Looking foraward to your answer
1 Solution
Amitkumar PSr. ConsultantCommented:
The example is there in the link provided by Doug.

Refer the section "Using Ajax to Enhance our Google Maps Application: Dynamic
" in http://today.java.net/pub/a/today/2006/10/25/integrating-google-maps-into-web-application.html
JorgenAxAuthor Commented:
The solution seems promising, but I still have a problem with request.status = 0 that keeps the program from functionning, which needs to be solved.  I have tried to ask the question to the community, but I am not sure if it has comr through?

Thank you for you answers

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now