Remove from session error and registerSuccess flags in jsp pages

This commit is contained in:
Sofia Baltzi 2018-03-13 12:20:26 +00:00
parent 90bed6d044
commit d42f4f223f
4 changed files with 10 additions and 6 deletions

View File

@ -9,8 +9,10 @@
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% if (session.getAttribute("error") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("error") != null) {
session.removeAttribute("error");
}%>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">
<head>

View File

@ -11,7 +11,7 @@
<% if (session.getAttribute("expiredVerificationCode") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("expiredVerificationCode")!=null) {
} else if (session.getAttribute("expiredVerificationCode") != null) {
session.removeAttribute("expiredVerificationCode");
}%>
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">

View File

@ -9,8 +9,10 @@
<!DOCTYPE html>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<% if (session.getAttribute("registerSuccess") == null) {
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("registerSuccess") != null) {
session.removeAttribute("registerSuccess");
}%>
<META HTTP-EQUIV=Refresh CONTENT="0.5; URL=http://beta.services.openaire.eu/uoa-user-management/openid_connect_login">
<html lang="en-gb" dir="ltr" vocab="http://schema.org/">

View File

@ -13,7 +13,7 @@
String redirectURL = request.getContextPath() + "/error404.jsp";
response.sendRedirect(redirectURL);
} else if (session.getAttribute("successAddPassword")!=null) {
} else if (session.getAttribute("successAddPassword") != null) {
session.removeAttribute("successAddPassword");
}%>
<META HTTP-EQUIV=Refresh CONTENT="0.5; URL=http://beta.services.openaire.eu/uoa-user-management/openid_connect_login">