Meaningless Drivel is fun!
The moose likes Servlets and the fly likes send xml via bean to JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "send xml via bean to JSP" Watch "send xml via bean to JSP" New topic

send xml via bean to JSP

Weigang Gu
Ranch Hand

Joined: Jan 16, 2001
Posts: 44
Hi, folks:
What is the best way to send XML file via a bean to JSP?
Helps appreciated
Frank Carver

Joined: Jan 07, 1999
Posts: 6920
I'm not sure I realy understand what you want here. Where is your XML data coming from? What does the JSP need to do with it?
A bean can easily return XML information as a DOM object, as a String containing the XML external representation, or any custom representation of the same data. To decide between these (and other) ways of using XML we do need to know more about how you plan to use the XML data.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: send xml via bean to JSP
It's not a secret anymore!