ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserView userView = SessionUtils.getUserView(request); Object args[] = { };
ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { IUserView userView = SessionUtils.getUserView(request); ActionErrors actionErrors = new ActionErrors(); Object args[] = { };
    public ActionForward prepare(        ActionMapping mapping,        ActionForm form,        HttpServletRequest request,        HttpServletResponse response)        throws Exception    {        IUserView userView = SessionUtils.getUserView(request);        Object args[] = { };        try        {            List infoWorkLocations =                (List) ServiceUtils.executeService(userView, "ReadAllWorkLocations", args);            if (infoWorkLocations != null)            {                if (infoWorkLocations.isEmpty() == false)                {                    ArrayList infoWorkLocationsValueBeanList = new ArrayList();                    Iterator it = infoWorkLocations.iterator();                    InfoWorkLocation infoWorkLocation = null;                    while (it.hasNext())                    {                        infoWorkLocation = (InfoWorkLocation) it.next();                        infoWorkLocationsValueBeanList.add(                            new LabelValueBean(                                infoWorkLocation.getName(),                                infoWorkLocation.getIdInternal().toString()));                    }                    request.setAttribute(                        SessionConstants.WORK_LOCATIONS_LIST,                        infoWorkLocationsValueBeanList);                }            }        }        catch (FenixServiceException e)        {            throw new FenixActionException(e.getMessage(), mapping.findForward("error"));        }        return mapping.findForward("start");    }