This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

forwarding xml cotent from servlet to a jsp

 
lalit upadheyay
Ranch Hand
Posts: 110
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic