When parsing an XML with netbeans, using java and a .jsp, I try to make a table where it shows the XML images. The parsing goes well, but when I launch it into a browser (I've used all browsers) it does not load the images (jpg).
- PART OF THE XML:
<Camaras>
<Camara>
<Posicion>
<Latitud>40.40376974</Latitud>
<Longitud>-3.66657048</Longitud>
</Posicion>
<URL>www.mc30.es/components/com_hotspots/
datos/imagenes_camaras/09NC39TV01.jpg</URL>
</Camara>
</Camaras>
-AQUI PART OF THE JSP:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="es-ES">
<head>
<meta charset="utf-8">
<title>Ejemplo con 2 cabeceras</title>
</head>
<body>
<table border="2">
<tr><td>Longitud</td><td>Latitud</td><td>Camara</td></tr>
<%
for (int i=0; i<lista_camaras.size(); i++)
{
Camara d=lista_camaras.get(i);
String url="http://"+d.getUrl();
String url_minusculas=(url.toLowerCase());
%>
<tr>
<td><%=d.getLatitud()%></td>
<td><%=d.getLongitud()%></td>
<td> <img src="<%=url_minusculas %>"/> </td>
</tr>
<%}%>
</table>
</body>
</html>
-The problem is that when I launch it to the browser, it loads the data well, but not the images:
-But when you inspect, the url is fine and if I copy and paste it in the browser, the image loads perfectly. The console gives me this error:
Failed to load resource: net :: ERR_EMPTY_RESPONSE
Has anyone had a similar problem?
** I add the beginning of the generated HTML code:
<table border="2">
<tr><td>Longitud</td><td>Latitud</td> <td>Camara</td></tr>
<tr>
<td>40.40376974</td>
<td>-3.66657048</td>
<td> <img src="http://www.mc30.es/components/com_hotspots/datos/imagenes_camaras/09nc39tv01.jpg" /> </td>
</tr>
<tr>
<td>40.40016472</td>
<td>-3.71215353</td>
<td> <img src="http://www.mc30.es/components/com_hotspots/datos/imagenes_camaras/15rr64tv01.jpg"/> </td>
</tr>
</table>
Greetings