no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@506 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Luis Flores 21 years ago
parent 6fcc01bf6f
commit 126e9a352c

@ -86,7 +86,7 @@ public class NewsServlet extends HttpServlet
private String getNews() private String getNews()
{ {
System.err.println( "NEWS: BEGIN" ); //System.err.println( "NEWS: BEGIN" );
try try
{ {
if( executer == null ) if( executer == null )
@ -97,26 +97,26 @@ System.err.println( "NEWS: BEGIN" );
Object o[][] = array.getObjects(); Object o[][] = array.getObjects();
if( o != null && o.length > 0 ) if( o != null && o.length > 0 )
{ {
System.err.println( "NEWS: " + o[ 0 ][ 0 ].toString() ); //System.err.println( "NEWS: " + o[ 0 ][ 0 ].toString() );
return o[ 0 ][ 0 ].toString() + " - " + o[ 0 ][ 1 ].toString(); return o[ 0 ][ 0 ].toString() + " - " + o[ 0 ][ 1 ].toString();
} }
} }
catch( Exception ex ) catch( Exception ex )
{ {
System.err.println( "NEWS: EX" ); //System.err.println( "NEWS: EX" );
ex.printStackTrace(); ex.printStackTrace();
close(); close();
} }
System.err.println( "NEWS: END" ); //System.err.println( "NEWS: END" );
return null; return null;
} }
public void doGet( HttpServletRequest req, HttpServletResponse res ) public void doGet( HttpServletRequest req, HttpServletResponse res )
throws IOException throws IOException
{ {
System.err.println( "NEWS: GET BEGIN" ); //System.err.println( "NEWS: GET BEGIN" );
init(); init();
System.err.println( "NEWS: AF INIT" ); //System.err.println( "NEWS: AF INIT" );
ServletOutputStream out = res.getOutputStream(); ServletOutputStream out = res.getOutputStream();
// String queryString = req.getQueryString(); // String queryString = req.getQueryString();
res.setContentType( "text/html" ); res.setContentType( "text/html" );
@ -130,7 +130,7 @@ System.err.println( "NEWS: AF INIT" );
{ {
parameters.put( "noticias", news ); parameters.put( "noticias", news );
} }
System.err.println( "NEWS: BF SHOW" ); //System.err.println( "NEWS: BF SHOW" );
out.println( showPage( "noticias/mostrar_noticias.html", parameters ) ); out.println( showPage( "noticias/mostrar_noticias.html", parameters ) );
} }

Loading…
Cancel
Save