Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem regarding url calling  RSS feed

Ranch Hand
Posts: 352
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am referring to this article

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

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

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=' + +
'&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,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!