Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dom object and servlets

 
felix thomas
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1932
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you would describe what the "back end" is, maybe we could provide more answers.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic