displaying a device using google maps on a website

I'm looking for direction regarding a college project.
.i have created a mobile application with java me for  a nokia s60 mobile phone..the app gets  the gps coordinates of  the mobile phone and then sends them to  to another mobile(whose number is embedded in the code) via sms...this works fine
the received message is for example;
if copied into browser it will bring up google maps with a pointer to the location of  the device...

What I'm trying to do now is send this url directly to my website ( www.blossompark.net) and automatically have the location displayed in google maps, i think i can probably manage to get  the information to the website using  http in Java ME  as outlined in this article(http://wiki.forum.nokia.com/index.php/Using_Http_and_Https_in_Java_ME)

 however i have no clue how to then display the url at  the website.....from what i have googled I'm thinking i need to create a servlet on the website that will accept the url and then (somehow) copy this url into a browser field to display the location....
the core of  the problem is how do i get  the website to receive  the url and then open it  in another page?
any ideas or directions regarding the best way to go with this?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can do it the servlet(or JSP) in a similar way that you did it on the phone.  I'll give you two JSP examples.
I think it would easier to send just the two numbers rather than the whole url.
For example  
<%@ page import="java.util.*,java.net.*,java.io.*" %>
  String x = request.getParameter("x");
  String y = request.getParameter("y");
  if(x != null || y != null ){
             URL url = new URL("http://maps.google.com/maps?q=" + x + "%20-" + y);
             URLConnection con = url.openConnection();
             BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));
             String inputLine;
             while ((inputLine = in.readLine()) != null)out.print(inputLine);
  } else {out.print("no data sent!");}

Open in new window

If you can use JSTL, then use  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> 
<c:import url="http://maps.google.com/maps?q=${param.x}%20-${param.y}" />  

Open in new window

Powerful Yet Easy-to-Use Network Monitoring

Identify excessive bandwidth utilization or unexpected application traffic with SolarWinds Bandwidth Analyzer Pack.

blossomparkAuthor Commented:
thanks for your responses...sending just  the two numbers rather  than the whole url seems like a better idea and i will incorporate that into my existing code......as I'm very new to the webserver side of things i have had to do more research on  the basics.  From the little knowledge i have acquired in the past day i'm thinking that using a combination  of php and query strings may be the way to go..
I'm thinking that if i can "package" the device coordinates into  the url query string, that I can then somehow (just researching this bit) trigger a php script to then display the coordinates in a seperate browser page....From the research i've done, it seems that php would be the "easiest" technology for me to get up to speed on....does this strategy  sound feasible to you?
...once again thanks for your responses...
>does this strategy  sound feasible to you?  
Yes, but I don't know PHP.  
You should ask a question in the PHP zone if you need help with it.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
blossomparkAuthor Commented:
thanks for your help,really appreciate it..
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.