This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem regarding url calling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Problem regarding url calling" Watch "Problem regarding url calling" New topic

Problem regarding url calling

Harshana Dias
Ranch Hand

Joined: Jun 11, 2007
Posts: 327
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,
I agree. Here's the link:
subject: Problem regarding url calling
Similar Threads
Getting Resin to ignore PHP script so that webserver deals with request
Who should verify the sanity of data?
how to use servlet in timer
invoking a java from a jsp file
geometry in java