dashboard aem
<%@page session="false"
contentType="text/html; charset=utf-8"
import="java.util.ResourceBundle,
javax.jcr.Session,
com.day.cq.i18n.I18n,
com.day.cq.security.Authorizable,
org.apache.sling.api.resource.ResourceUtil"%><%
%><%@include file="/libs/foundation/global.jsp"%><%
final ResourceBundle resourceBundle = slingRequest.getResourceBundle(null);
final I18n i18n = new I18n(resourceBundle);
final String contextPath = request.getContextPath();
String title = i18n.getVar(properties.get("jcr:title", ResourceUtil.getName(resource)));
Session session = resourceResolver.adaptTo(Session.class);
Authorizable auth = resourceResolver.adaptTo(Authorizable.class);
String name = auth == null ? null : auth.getName();
if (name == null) {
// workaround if user manager service is not ready yet.
name = session.getUserID();
}
%>
<%= i18n.get("Welcome, {0}.", "welcome screen", name) %></h1>