• Post Reply Bookmark Topic Watch Topic
  • New Topic

Urgent: How to create XML In jsp using Javabean

 
viral patel
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...I have orderform, i user orderbean to store data entered in orderform. Now i want to generate xml in jsp using my orderbean. Can i do that. and if i can...can someone show me example how?
 
Juanjo Bazan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, set the response.contentType to "text/xml".
Now add your bean to the request (or session, or..) scope.
Then just output your information formatted in xml.
Code sample:


HTH
[ March 12, 2003: Message edited by: Juanjo Bazan ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!