This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlet and xml

 
Sruthi Sen
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all

Can i send data from one servlet to other in an xml format and receive data in the same format?

is it possible?

thank u.
 
ankur rathi
Ranch Hand
Posts: 3830
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by kee ch:
hi all

Can i send data from one servlet to other in an xml format and receive data in the same format?

is it possible?

thank u.



You can always convert XML into Document object(DOM) and probably reverse also....

And then you can set this Document object into request attribute and forward request to some other servlet/JSP...

Hope it is right way...


[ December 27, 2005: Message edited by: rathi ji ]
 
Christophe Verré
Sheriff
Pie
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
XBeans ?

Use Xbeans to process your XML as DOM Documents
 
Sruthi Sen
Greenhorn
Posts: 22
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but how to create DOM object?

can i have sample code of sender and reciever servlet?

thanks a lot
 
Vishnu Prakash
Ranch Hand
Posts: 1026
 
Shrinivas Mujumdar
Ranch Hand
Posts: 328
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
If you are talking about passing XML across Process boundary then XBean will be a solution otherwise a simple file handle/DOM Tree will do the job within a single web app.
Shrinivas
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic