no message

git-svn-id: https://svn.coded.pt/svn/SIPRP@505 bb69d46d-e84e-40c8-a05a-06db0d633741
0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Luis Flores 21 years ago
parent e02a91dbc5
commit 6fcc01bf6f

@ -32,13 +32,33 @@ public class NewsServlet extends HttpServlet
new Field( "( SELECT MAX( id ) FROM not_noticias )" ) ) );
private SQLExecuter executer = null;
private static boolean velocityInit = false;
public void init()
{
if( !velocityInit )
{
try
{
String TEMPLATE_DIR = this.getServletContext().getRealPath( "/" ) + "html/";
Properties props = new Properties();
props.setProperty( "file.resource.loader.path", TEMPLATE_DIR );
Velocity.init( props );
}
catch( Exception ex )
{
ex.printStackTrace();
}
velocityInit = true;
}
if( DBM != null )
{
return;
}
try
{
DBM = new JDBCManager( bdUrl + "?prepareThreshold=1",

Loading…
Cancel
Save