• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Problem regarding url calling

 
Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am referring to this article http://code.google.com/apis/maps/articles/phpsqlsearch.html

I want to build a java(servlet/jsp) application using above
functionality. I have google on JAXP API for generating a xml
documnet.

So my question is as in the above php script we are out put the xml
documnet ($dom->saveXML() ) so instead what should i have to do in a
servlet.?

My opinion is create a model java class(CreateDomXml) which creates
the xml document and call it in the servelt class and out put the
result in the serlet as,

CreateDomXml cc=new CreateDomXml();
out.println(call a method which return the xml dom));

is it correct?

Also how to call my servelt as in the php file where it calls like,

var searchUrl = 'phpsqlsearch_genxml.php?lat=' + center.lat() +
'&lng=' + center.lng() + '&radius=' + radius;

in order to call this method GDownloadUrl(searchUrl, function(data) {}

Im really looking forward for an answer or any resources. Thank you.

Best Regards,
Harshana.
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic