<%@page session="true" import="com.edeal.frontline.*"%> <%@ page import="java.util.*" %> <%@ page import="com.edeal.frontline.navigation.FlRequest" %> <%@taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl"%> <% final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); FlContext context = flRequest.getContext(); String actorID = (String)session.getAttribute("actorID"); String actorName = ""; if (actorID != null) { ActorBean actBean = new ActorBean(actorID,session); try { String actFstname = actBean.getActFstName(); actorName += actFstname.substring(0,1)+"."; }catch (FieldNotInitializedException e){} try { String actname = actBean.getActName(); actorName += actname; }catch (FieldNotInitializedException e){} } String nbMaxMenu = (String) session.getAttribute("ActNbCharMenuMax"); int nbMax = 5; if (nbMaxMenu != null) { Integer nbChar = new Integer(nbMaxMenu); if (nbChar != null) nbMax = nbChar.intValue(); } String logout = Utils.getMessage(session, "L2083", "Logout"); if (logout.length() > nbMax) logout = logout.substring(0,nbMax); String actor = Utils.getMessage(session, "L607C", "Acteurs"); if (actor.length() > nbMax) actor = actor.substring(0,nbMax)+"."; %>