ModuleConfig modConfig = (ModuleConfig)request.getAttribute("org.apache.struts.action.MODULE"); String modulePrefix = modConfig.getPrefix(); if(modulePrefix==null) modulePrefix=""; request.setAttribute("modulePrefix",modulePrefix);
	public ActionForward execute(ActionMapping mapping, ActionForm form,		      HttpServletRequest request, HttpServletResponse response) throws Exception{			GrouperSession grouperSession = (GrouperSession) request.getSession().getAttribute("edu.intenet2.middleware.grouper.ui.GrouperSession");			//if(grouperSession == null && !"/populateIndex.do".equals(request.getServletPath())) return mapping.findForward("Index");			HttpSession session = request.getSession();			String pageSize = request.getParameter("pageSize");			if(pageSize !=null && pageSize.length() > 0) {				session.setAttribute("default.pagesize",pageSize);			}						DynaActionForm dummyForm = (DynaActionForm)form;			if(dummyForm != null) {				try {					dummyForm.set("pageSize","" + getPageSize(session));				}catch(Exception e) {					//Ok so form doesn't care about pageSize					//let's just ignore it				}			}			if(form!=null)request.setAttribute("grouperForm",form);			Object sessionMessage = session.getAttribute("sessionMessage");			if(isEmpty(request.getAttribute("message")) && !isEmpty(sessionMessage)) {				request.setAttribute("message",sessionMessage);				session.removeAttribute("sessionMessage");			}			Date before = new Date();			ActionForward forward =  grouperExecute(mapping,form,request,response,session,grouperSession);			Date after = new Date();			long diff = after.getTime()-before.getTime();			String url = request.getServletPath();			Long ms = (Long)request.getAttribute("timingsMS");			long mss=0;			if(ms !=null) mss=ms.longValue();			if(diff > 25) {				request.setAttribute("timingsClass",this.getClass().getName());				request.setAttribute("timingsMS",new Long(diff+mss));			}			if(forward.getRedirect()&& !isEmpty(request.getAttribute("message"))) {				try {				session.setAttribute("sessionMessage",request.getAttribute("message"));				}catch(IllegalStateException e){}			}			if(Boolean.TRUE.equals(request.getAttribute("loggedOut"))) {				return forward;			}			String advSearch = request.getParameter("advancedSearch");			try {				session.getAttribute("");			}catch(Exception e) {				return forward;			}			if(!isEmpty(advSearch)) {				setAdvancedSearchMode("true".equals(advSearch),session);			}			request.setAttribute("isAdvancedSearch",getAdvancedSearchMode(session));			return forward;	}