mi instruccion para ke salga la imagen es:
<img src="/images/fotos/<%=foto%>" alt=" " width="170" height="170" border="0" TARGET="_self"></a></td>
por favor espero me puedan ayudar.
![lloron](http://static.forosdelweb.com/fdwtheme/images/smilies/chillando.png)
| |||
if para imagenes en una tabla hola! no se si sea medio boba mi pregunta pero como le hago para ke en mi listado de articulos de mi pag web hecha con jsp pueda hacer ke si esta ya mi imagen aparezca mi imagen y si no esta aparezca otra, ke es un logo con la layenda de no disponible??? mi instruccion para ke salga la imagen es: <img src="/images/fotos/<%=foto%>" alt=" " width="170" height="170" border="0" TARGET="_self"></a></td> por favor espero me puedan ayudar. ![]() |
| ||||
Re: if para imagenes en una tabla <%=foto ? foto : 'nombreimagenvacia.jpg' %>
__________________ * Chauchas.cl - - Avisos clasificados Chile. |
| |||
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=" " 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> |