<%@ page import = "javax.servlet.http.HttpUtils" %> <%@ page import = "java.util.*" %> <%@ page import = "java.util.Date" %> <%@ page import = "java.sql.*" %> <%@ page import = "java.io.*" %> <%String estilo=""; try{ //Comprueblo la v. de session if(session.getValue("estilo")==null){ estilo="estilo.css"; }else{ estilo=(String)session.getValue("estilo"); }//Fin de comprobacion session }catch(Exception e){ estilo="estilo.css"; } try{ //Comprueblo la v. de session int c_inmo; if(session.getValue("c_inmo")==null){ //Se intenta acceder a este programa sin tener la variable de session response.sendRedirect("login.jsp"); }else{ response.sendRedirect("inmobiliaria/detalle.jsp"); }//Fin de comprobacion session }catch(Exception e){ String excep=e.toString(); excep=excep.replace('\"','\''); excep=excep.substring(0,excep.length()-1); response.sendRedirect("comun/error.jsp?e=0&exc="+excep); }%>