• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

forwarding xml cotent from servlet to a jsp

 
lalit upadheyay
Ranch Hand
Posts: 110
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

How can we forward a string containg xml content from a servlet to a jsp? In my assignment i have a jsp page with two buttons, load xml and parse xml. Load xml will display the xml content froma static file within the web app itself to another jsp and parse xml will display the parsed xml content to another file.

I can get the problem to work in a less precise way , i.e.
setting response content type to text/xml to get actual xml content
setting response content type to text/html to get parse xml content

in addition to using RequestDispatcher and forwarding it to the page sending the request.

Please help or suggest some ways.

Thanks,
Lalit Upadheyay
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic