• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

forwarding xml cotent from servlet to a jsp

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic