<%@ page import = "java.util.*,antena3.a3tv2004.datos.*,antena3.a3tv2004.*,antena3.a3tv2004.modelo.*,antena3.a3tv2004.NotasPrensa.*" contentType="text/html;charset=windows-1252" errorPage="/web/html/error/err404.htm"%> <% // Vector promoDerecha=baseDatos.getTxtLinkSecciones(183,478); Txtlinkbd txtlinkbd = new Txtlinkbd(); String nueva = new String(); String metadata = (String)request.getAttribute("metadata"); %> Antena 3 <%=metadata%>
<%! String reemplaza(String texto,String cadena,String cadenaNueva){ String salida=texto; while(salida.indexOf(cadena)>=0){ salida=salida.substring(0,salida.indexOf(cadena))+cadenaNueva+salida.substring(salida.indexOf(cadena)+cadena.length(),salida.length()); } return salida; } %> <% int orden_nota=-1; if (request.getParameter("notactual")!=null){ orden_nota=Integer.parseInt(request.getParameter("notactual")); } NotasPrensa notas=new NotasPrensa(); Vector datos =notas.DameTextoNota(orden_nota); //out.print("var texto = '';\n"); if(datos.size() > 0){ //out.println(" texto ='"+ this.reemplaza(this.reemplaza((String)datos.elementAt(0), "\r",""),"\n","") +"';\n"); //out.println(datos.elementAt(0)); String textor=(String)datos.elementAt(0); //textor=this.reemplaza(textor,"",""); //textor=this.reemplaza(textor,"",""); //textor=this.reemplaza(textor,"",""); //textor=this.reemplaza(textor,"",""); textor=this.reemplaza(textor,"Tahoma","Verdana"); textor=this.reemplaza(textor,"size=2","class=\"parrafo3\""); textor=this.reemplaza(textor,"size=3","class=\"titulo2c\""); textor=this.reemplaza(textor,"size=4","class=\"titulo2c\""); textor=this.reemplaza(textor,"" ,""); textor=this.reemplaza(textor,"

" ,""); textor=this.reemplaza(textor,"" ,"

"); out.println(textor); } %>

Más notas de prensa:
<% for(int i=0;i<% }else{ if(i==1){ %><% }else{ %><% } } } %>
>" width="120" height="30" border=0>
>" width="120" height="30" border=0>
>" width="120" height="60" border=0>