diff --git a/src/main/webapp/menu.jsp b/src/main/webapp/menu.jsp index e84f49e..db40705 100644 --- a/src/main/webapp/menu.jsp +++ b/src/main/webapp/menu.jsp @@ -8,10 +8,6 @@ }%> - - - - diff --git a/src/main/webapp/postulante-consulta.jsp b/src/main/webapp/postulante-consulta.jsp index cbe528c..fcc0b02 100644 --- a/src/main/webapp/postulante-consulta.jsp +++ b/src/main/webapp/postulante-consulta.jsp @@ -1,3 +1,13 @@ + <%@ page import= "jakarta.servlet.http.* , java.lang.Object" %> + <%HttpSession session1 = request.getSession(true); + Object done = session1.getAttribute("logon.isDone"); + if (done == null) { + session1.setAttribute("login.target", HttpUtils.getRequestURL(request).toString()); + response.sendRedirect(request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + request.getContextPath() +"/login.jsp"); + return; + + }%> + <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ taglib uri = "http://java.sun.com/jsp/jstl/core" prefix = "c" %>