aspose file tools*
The moose likes XML and Related Technologies and the fly likes dom object and servlets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "dom object and servlets" Watch "dom object and servlets" New topic
Author

dom object and servlets

felix thomas
Ranch Hand

Joined: Jun 10, 2001
Posts: 89
I want to use DOM object and servlets for my application what i want is
that the document object should be passed to the back end which will do the required processing and then again send the modified document to the servlet . I need some examples for this ??? can anyone help nme out???
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
I don't think this question is really related to XML, more with servlets and URL objects, but if you are talking about helper classes as your "back end", then simply pass the Document object the way you normally would. To get it back to the servlet, open a URL connection and write the object via an ObjectOutputStream, and in the servlet us an ObjectInputStream to receive it and do whatever else you need to do.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
If you would describe what the "back end" is, maybe we could provide more answers.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
jQuery in Action, 2nd edition
 
subject: dom object and servlets
 
Similar Threads
How can i change xml node value?
about document2string
display DOM document
help regarding createing node in xml file
not able to create XML through DOM...