From 274c63cc29d0b80884eb7bd746f5b5932fde99a1 Mon Sep 17 00:00:00 2001 From: Emanuel Lugo Date: Wed, 18 May 2022 07:38:38 -0400 Subject: [PATCH] seguridad a filtros postulante --- src/main/webapp/menu.jsp | 4 ---- src/main/webapp/postulante-consulta.jsp | 10 ++++++++++ 2 files changed, 10 insertions(+), 4 deletions(-) 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" %> -- libgit2 0.26.0