Actualizando el sistema...
<%
/************************** Guarda los cambios hechos a los datos del usuario en la base de datos **************************************/
out.println("");
String nompag[] = request.getRequestURI().split("/");
%>
<%
//Connection lcnt_con = null;
ResultSet lrs_res = null;
Statement lst_stm = null;
ResultSet lrs_res2 = null;
Statement lst_stm2 = null;
/*INICIO. Segunda Conexion*/
ConexionDeclaranet cd = null;
Connection lcd_connection = null;
//Statement lstg_conecta=null;
/*FIN. SEGUNDA CONEXION*/
String ls_query = new String("");
String emergent_error = new String("");
boolean lb_connection = false;
String debug = new String("si");
String id_monitor = new String("si");
boolean valido = true;
String id_funcionario = new String("");
String id_dom_puesto = new String("");
String id_puesto_funcionario = new String("");
String id_altabaja = new String("");
String clave = new String("");
String dep = new String("");
Integer clavemas=0;
Integer codigop;
String id_tipo_cargo = "";
/*Date fechaActual = new Date();
SimpleDateFormat formato = new SimpleDateFormat("yyyy-MM-dd");
String resultado = formato.format(fechaActual);*/
/********* INICIO. Conexion a la base de datos ********/
try {
if (!Config.getParametro("debug").equals("si")) {
debug = "no";
}
cd = new ConexionDeclaranet();
lcd_connection = cd.getConnection();
lst_stm = lcd_connection.createStatement();
lst_stm2 = lcd_connection.createStatement();
lb_connection = true;
}catch (Exception e) {
emergent_error = "Error al conectarse a la base de datos ";
if (debug.equals("si")) {
emergent_error += e;
}
lb_connection = false;
}
/*FINAL. Conexion a la base de datos 2*/
//********* Validacion fundamental para evitar ejecucion de codigo sin privilegios suficientes **********//
/*try {
if (!Permisos.PermisoModulo(nompag[nompag.length - 1].toString(), Integer.parseInt(session.getAttribute("id_user").toString()))) {
if (lb_connection) {
lst_stm.close();
lst_stm2.close();
lrs_res.close();
lrs_res2.close();
lcd_connection.close();
}
emergent_error += " Privilegios insuficientes. ";
lb_connection = false;
}
} catch (Exception e) {
emergent_error += " Privilegios insuficientes. ";
if (debug.equals("si")) {
emergent_error += "Trace: " + e.toString();
}
}*/
/********* FIN. Conexion a la base de datos ********/
//*******************************************************************************************************//
if (lb_connection) {
try {
%>
Actualizando la base de datos, espere por favor...