[Dojo-interest] XML parsing problem
solutions.aum at gmail.com
Mon Feb 5 10:01:58 MST 2007
i agree with you.initially we have made this utility in java and we are
getting our xml from server and sending back this xml to server using
servlet and apache web server.
but the real problem is that we don't have any control over
the design process client want every processing at client side using DOJO.We
have to parse our XML received from the server at client side and even the
data from the form has to be converted in to XML at client side only,but the
data base intraction is to be done by JAVA, for that client has written
there own class files.Please suggest me to get out from this problem as i
don't have any kind of resources and any such idea.We are really very new to
> Can you describe what you mean by "Java API"? Is it a Java library (in
> which case, you'll only be able to call it from within a Java
> application, which means you'll have to use an application server as I
> mentioned)? Or is it a web service API that is implemented in Java
> behind the scenes (i.e. they've given you URLs that you can send
> requests to and retrieve this XML from)? If that is the case, then
> whether it's Java or .NET or whatever doesn't make a difference; you're
> sending XML to that URL and you're getting XML back, without regard for
> what language they used.
> -- Jim
> umeshawasthi wrote:
>> THanks Jim!!
>> My problemis that client had already a java API which will provide us the
>> data in XML form we have to collect that data from that respective API
>> function. Client's requirement is that they want to do most of processing
>> client side.
>> My problem is that we have to call that functionality from inside the
>> DOJO and then parse XML data inside the dojo, so that we can display data
>> dynamically. We don't have any such working example or any such material.
>> Any small working example can help us a lot.
>> Jim-118 wrote:
>>> Hi Umesh,
>>> sandbox cannot communicate directly with a server's Java Virtual
>>> You need an intermediary -- something that translates between Dojo and
>>> your Java API.
>>> One option is using a Java application server like Tomcat on the servier
>>> Example 1: Create a servlet that reads from the database, parses the
>>> XML, and outputs the data in whatever form you wish (it's more efficient
>>> this on the server-side). Map this servlet to a URL, of course, and
>>> that's the URL you'll make dojo-AJAX calls to.
>>> Example 2: Use the Direct Web Remoting project
>>> (http://getahead.ltd.uk/dwr/) to handle both the server-side processing
>>> /and/ the AJAX go-between.
>>> I'm afraid no one's going to be able to give you source code for this,
>>> especially if you don't have an intermediary.
>>> -- Jim
>>> umeshawasthi wrote:
>>>> Hi All,
>>>> i m really new to Dojo.but i need the solutions to a problem and unable
>>>> find any answer so far..
>>>> wat i need to do is to extract an XML file from the data base.to
>>>> XML file from the database We have JAVA API which will give us the data
>>>> XML file.
>>>> The proble ism, I have to call this java method from the
>>>> then we have to parse that XML file using DOJO API's to display the
>>>> results.We can also use DOJO Ajax functionlity for this.
>>>> I really need the solution to this problem as earlier
>>>> possible,so can't go for any resource(books etc.).Can anybody help me
>>>> providing me the source code for the above mentioned problem.Any help
>>>> earlier will be much appriciated.
>>>> tHANKS IN aDVANCE.
>>> Dojo FAQ: http://dojo.jot.com/FAQ
>>> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
>>> Dojo-interest at dojotoolkit.org
> Dojo FAQ: http://dojo.jot.com/FAQ
> Dojo Book: http://manual.dojotoolkit.org/DojoDotBook
> Dojo-interest at dojotoolkit.org
View this message in context: http://www.nabble.com/XML-parsing-problem-tf3174946.html#a8810254
Sent from the Dojo mailing list archive at Nabble.com.
More information about the Dojo-interest