File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "dom object and servlets" Watch "dom object and servlets" New topic

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

Joined: Jan 23, 2002
Posts: 11962
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]
I agree. Here's the link:
subject: dom object and servlets
It's not a secret anymore!