public void doView(RenderRequest request,RenderResponse response)
throws PortletException,IOException {
Principal user = request.getUserPrincipal();
if (user == null) {
PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/login.jsp");
dispatcher.include(request, response);
} else {
request.setAttribute("user", user);
PortletRequestDispatcher dispatcher = getPortletContext().getRequestDispatcher("/WEB-INF/jsp/logged.jsp");
dispatcher.include(request, response);
}