How to get data from java program into a URL

Posted on 2012-08-24
Last Modified: 2012-09-17
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 (
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
Question by:JorgenAx
    LVL 20

    Accepted Solution

    The example is there in the link provided by Doug.

    Refer the section "Using Ajax to Enhance our Google Maps Application: Dynamic
    " in

    Author Closing Comment

    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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Live - One-on-One Java Help from Top Experts

    Solve your toughest problems, fast.
    Java experts are online now and ready to help you.

    Suggested Solutions

    INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
    Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
    This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
    This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

    759 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now