aspose file tools*
The moose likes Java in General and the fly likes forwarding xml cotent from servlet to a jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "forwarding xml cotent from servlet to a jsp" Watch "forwarding xml cotent from servlet to a jsp" New topic
Author

forwarding xml cotent from servlet to a jsp

lalit upadheyay
Ranch Hand

Joined: Jun 20, 2005
Posts: 110
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


SCJP1.4, SCWCD1.4, SCBCD5.0(working on...)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: forwarding xml cotent from servlet to a jsp