• Post Reply Bookmark Topic Watch Topic
  • New Topic

Parsing xml from a URL  RSS feed

 
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
Posts: 65833
134
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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!