How do I get an xml page (I mean an REST API from an web service), parse it and display it in my website, in jsp?
I don't have the complete answer but here is how to get a web page at least. I'm trying to do something similar so will come back when I have more.
<%@page import="java.net.*" %>
<%@page import="java.io.*" %>
<%
URL dest = new URL("http://www.yahoo.com/");
URLConnection yc = dest.openConnection();
BufferedReader in = new BufferedReader(
new InputStreamReader(
yc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
%>