%@ page import="com.tarisan.data.Usuario" %>
<%@ page import="com.tarisan.log.*" %>
<%@ page import="com.tarisan.util.Utilidades" %>
<%@ page import="com.tarisan.control.*" %>
<%@ page import="com.tarisan.data.*" %>
<%
LogTarisan.logger.log(NivelLog.INFO, "Inicio página de error (errorIguala.jsp)");
response.setHeader("Expires", "0");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
HttpSession sesion = request.getSession(true);
String mensaje = null;
if(sesion.isNew() || (sesion.getAttribute("ERROR") == null))
{
LogTarisan.logger.log(NivelLog.INFO, "Sesión invalidada");
response.sendRedirect("../html/login.html");
}
else
{
mensaje = (String)sesion.getAttribute("ERROR");
if(mensaje == null || (mensaje.trim().compareTo("") == 0))
{
mensaje = "El paciente es una iguala suya.";
}
sesion.removeAttribute("ERROR");
Usuario usuario = (Usuario)sesion.getAttribute("USUARIO");
Tamensaje tamensaje = new Tamensaje();
PersistenciaTamensaje pertamensaje = new PersistenciaTamensaje();
%>
Error en Tarisan
<%
if(usuario == null)
{
%>
| |
<%
}
else
{
%>
<%= usuario %> |
<%
}
%>
 |
<%
}
LogTarisan.logger.log(NivelLog.INFO, "Final página de error (errorIguala.jsp)");
%>