%@ page import="java.util.Map, org.apache.struts.util.MessageResources, org.apache.struts.Globals, java.util.Set, org.apache.agila.bpel.client.WorkItem, org.apache.agila.bpel.client.User"%> <%@ page contentType="text/html;charset=UTF-8" language="java"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%! public boolean isUserInRole(HttpServletRequest request, String rolename) { Set roles = (Set) request.getSession().getAttribute("rolesName"); if(roles == null) { return false; } return roles.contains(rolename); } %>