View Javadoc
1   package org.itracker.web.actions.admin.scheduler;
2   
3   import org.apache.struts.action.ActionForm;
4   import org.apache.struts.action.ActionForward;
5   import org.apache.struts.action.ActionMapping;
6   import org.itracker.services.ProjectService;
7   import org.itracker.web.actions.base.ItrackerBaseAction;
8   import org.itracker.web.util.ServletContextUtils;
9   
10  import javax.servlet.http.HttpServletRequest;
11  import javax.servlet.http.HttpServletResponse;
12  
13  
14  public class ListTasksAction extends ItrackerBaseAction {
15  
16      public ActionForward execute(ActionMapping mapping, ActionForm form,
17                                   HttpServletRequest request, HttpServletResponse response)
18              throws Exception {
19  
20          ProjectService projectService = ServletContextUtils.getItrackerServices().getProjectService();
21          request.setAttribute("ph", projectService);
22  
23          String pageTitleKey = "itracker.web.admin.listtasks.title";
24          String pageTitleArg = "";
25          request.setAttribute("pageTitleKey", pageTitleKey);
26          request.setAttribute("pageTitleArg", pageTitleArg);
27  
28          return mapping.findForward("listtasks");
29      }
30  
31  }