Well, here's the thing. I'm using JSP, SERVLET and MySQL to insert images into my project, I just happen to save the image path in the database, and then call that path to show the image. Hence the problem:
<%
ArrayList<Fotos> lista = new ArrayList<Fotos>();
try {
Fotos f = new Fotos();
lista = f.listar();
} catch (Exception e) {
out.print("Erro:" + e);
}
for (Fotos fl : lista) {
%>
<p><%=fl.getId()%><p>
<img src="img/<%fl.getLink()%>">
<td><a href="alterar_foto.jsp?id=<%=fl.getId()%>">alterar</a>/<a href="#" onclick="excluir('<%=fl.getLink()%>', '<%=fl.getId()%>');">excluir</a>
<%
}
%>
The path of the image on my computer is: C: \ Users \ Gabriel \ Documents \ EngatFitOriginal \ web \ img
It just does not show on the list page:
Does anyone know how to do it?