• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parsing xml from a URL

 
Edward Morris
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65123
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you do this in a JSP rather than in its controller servlet?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic