|
|
<%!
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);
}
%>
|