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} -

General

- - Please enter a name for your service. - + class="uk-input" onkeyup="validate()" onfocusout="nameTouched = true;validate()" value=${first_name}> + +
+ class="uk-textarea" rows="3" value=${description}> +
-

Access

@@ -82,7 +81,6 @@
-

Credentials

@@ -97,28 +95,59 @@ - + - + +
- - Please provide a valid JSON. + + + +
Please provide a valid JSON.
+ +
+ + + +
+
Cancel -
@@ -164,81 +193,100 @@ \ No newline at end of file