diff --git a/src/main/webapp/html/rpttokenreader/view.jsp b/src/main/webapp/html/rpttokenreader/view.jsp index 345860d..7202671 100644 --- a/src/main/webapp/html/rpttokenreader/view.jsp +++ b/src/main/webapp/html/rpttokenreader/view.jsp @@ -9,6 +9,15 @@ pageContext.setAttribute("userGroups", userGroups); List userContexts = (List) request.getAttribute("userContexts"); pageContext.setAttribute("userContexts", userContexts); + +String sub = "-"; + +if (userContexts != null && userContexts.size()>0){ + sub = userContexts.get(0).substring(userContexts.get(0).lastIndexOf("/") + 1); +} + +pageContext.setAttribute("firstContextName", sub); + %>