From 8da70d876466bc36d59367ec87699f5eadf391e2 Mon Sep 17 00:00:00 2001 From: Connor L Jackson Date: Wed, 12 Apr 2017 21:16:26 -0400 Subject: [PATCH] Redirect wasn't quite working It's all good now --- WebContent/html/webpages/navbar.jsp | 4 +++- WebContent/html/webpages/returnPage.jsp | 18 ++++-------------- 2 files changed, 7 insertions(+), 15 deletions(-) diff --git a/WebContent/html/webpages/navbar.jsp b/WebContent/html/webpages/navbar.jsp index b44f3f2..ab4cbb2 100644 --- a/WebContent/html/webpages/navbar.jsp +++ b/WebContent/html/webpages/navbar.jsp @@ -43,8 +43,10 @@ } } } - if(navsso.equals("invalid"))//if we didn't get a cookie, redirect to the homepage to log in again! + if(navsso.equals("invalid")){//if we didn't get a cookie, redirect to the homepage to log in again! response.sendRedirect("../../index.jsp"); + return; + } else{ self = EmployeeQueries.getEmployeeByID(Integer.parseInt(navsso)); navname = self.getName(); diff --git a/WebContent/html/webpages/returnPage.jsp b/WebContent/html/webpages/returnPage.jsp index aa61042..00c03bc 100644 --- a/WebContent/html/webpages/returnPage.jsp +++ b/WebContent/html/webpages/returnPage.jsp @@ -74,11 +74,11 @@ width: 20px; } - +