URL url = new URL(
"http://localhost:8080/lab11Web/hospital/patients/allpatients");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
String output = br.readLine();
while(output != null
{
System.out.println(output);
output = br.readLine();
}