Ver Mensaje Individual
  #5 (permalink)  
Antiguo 05/02/2008, 10:27
monit
 
Fecha de Ingreso: febrero-2007
Mensajes: 14
Antigüedad: 17 años, 2 meses
Puntos: 0
Re: if para imagenes en una tabla

pues ya puse eso pero no funciono, tb lo puse asi:

<%
int indx = 0;
Iterator it = productos.iterator();
while(it.hasNext()) {
indx ++;
ProductoTO producto = (ProductoTO)it.next();
String foto = "";
try {
foto = producto.clproducto.substring(0, 3)
+"/"+producto.clproducto+".jpg";
} catch(Exception e) {
}
java.io.File imagen = new java.io.File("/images/fotos/"+foto);
if(!imagen.exists())
foto = "nodisponible.jpg";

%>
<tr>
<td align="center"><a href="/adorote/catalogo/detalleo.jsp?codigo=<%=producto.clproducto%>" TARGET="_self">
<img src="/images/fotos/<%=foto%>" alt="&nbsp;" width="170" height="170" border="0" TARGET="_self"></a></td>
<td><%=producto.clproducto%></td>
<td><a href="/adorote/catalogo/detalleo.jsp?codigo=<%=producto.clproducto%>" TARGET="_self">
<%=producto.dsproducto%></a></td>