aspose file tools
The moose likes JSP and the fly likes Parsing xml from a URL Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSP
Reply Bookmark "Parsing xml from a URL" Watch "Parsing xml from a URL" New topic
Author

Parsing xml from a URL

Edward Morris
Greenhorn

Joined: Jun 29, 2006
Posts: 18
How do I parse an XML file on a remote server in JSP? When I make a pure java stand alone app using JAXP, I am able to do something like

Document doc = docBuilder.parse("http://x.y.com/some.xml");

and it works. I do the same in JSP it fails.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56521
    
  14

Why would you do this in a JSP rather than in its controller servlet?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Parsing xml from a URL
 
Similar Threads
Passing XML between JSP's through HTTP
xml FOP and jsp
jsp - Ajax - xml problem
Power of XML
jsp - ajax - html