File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes send xml files via bean to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "send xml files via bean to JSP" Watch "send xml files via bean to JSP" New topic

send xml files via bean to JSP

Weigang Gu
Ranch Hand

Joined: Jan 16, 2001
Posts: 44
Hi, folks:
I want to send a xml file via a bean to my jsp page. Any thoughts?
Help appreciated
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
Assuming you want to put the XML straight into the content of the JSP, why not make it a single String returned from a bean method?
Alternately you could pass the out PrintWriter to the bean and have it do the output.
I agree. Here's the link:
subject: send xml files via bean to JSP
It's not a secret anymore!