diff --git a/src/main/java/eu/dnetlib/openaire/usermanagement/RegisterServiceServlet.java b/src/main/java/eu/dnetlib/openaire/usermanagement/RegisterServiceServlet.java index 299f66a..bf82e2c 100644 --- a/src/main/java/eu/dnetlib/openaire/usermanagement/RegisterServiceServlet.java +++ b/src/main/java/eu/dnetlib/openaire/usermanagement/RegisterServiceServlet.java @@ -75,7 +75,7 @@ public class RegisterServiceServlet extends HttpServlet { String[] schemes = {"https"}; UrlValidator urlValidator = new UrlValidator(schemes); if (!urlValidator.isValid(jwksUri)){ - request.getSession().setAttribute("msg_key_uri_error_display", "display:block"); + request.getSession().setAttribute("uri_error", true); canProceed = false; } } else { @@ -86,11 +86,11 @@ public class RegisterServiceServlet extends HttpServlet { jwks = gson.fromJson(jwksSet, Jwks.class); if (jwks.getKeys() == null || jwks.getKeys().length == 0) { System.out.println("Something wrong with the keys."); - request.getSession().setAttribute("msg_key_value_error_display", "display:block"); + request.getSession().setAttribute("value_error", true); canProceed = false; } } catch (JsonParseException jpe) { - request.getSession().setAttribute("msg_key_value_error_display", "display:block"); + request.getSession().setAttribute("value_error", true); canProceed = false; } } diff --git a/src/main/webapp/registerService.jsp b/src/main/webapp/registerService.jsp index c602ab8..5d1704c 100644 --- a/src/main/webapp/registerService.jsp +++ b/src/main/webapp/registerService.jsp @@ -56,23 +56,22 @@
- ${message} -