I ask for your help, I am making a query to a table to recover where the image is.
FTPClient cliente = new FTPClient();//Iniciamos el cliente del
FileOutputStream stream = null;
cliente.connect("ip");
cliente.login("user", "pass");
I access the directory where they are
FTPFile[] files = cliente.listFiles("/var/www/html/directorio")
and I send it to the JSP
r.put("imagen", "/var/www/html/directorio/"+files[count].getName());
and in the JSP I make a for each to print them (they are more than one)
<c:forEach items="${images}" var="r">
<img src="<c:url value='${r.imagen}' />"/>
</c:forEach>
Does not the image print me, any ideas that you give me? Thanks!