1 package org.itracker.web.actions.project;
2
3 import org.apache.log4j.Logger;
4 import org.apache.struts.action.ActionForm;
5 import org.apache.struts.action.ActionForward;
6 import org.apache.struts.action.ActionMapping;
7 import org.apache.struts.action.ActionMessages;
8 import org.itracker.web.actions.base.ItrackerBaseAction;
9 import org.itracker.web.util.ListIssuesActionUtil;
10
11 import javax.servlet.http.HttpServletRequest;
12 import javax.servlet.http.HttpServletResponse;
13
14 public class ListIssuesAction extends ItrackerBaseAction {
15 private static final Logger log = Logger.getLogger(ListIssuesAction.class);
16
17
18
19
20 @Override
21 public ActionForward execute(ActionMapping mapping, ActionForm form,
22 HttpServletRequest request, HttpServletResponse response)
23 throws Exception {
24
25 ActionMessages errors = new ActionMessages();
26
27 ActionForward af = ListIssuesActionUtil.init(this, errors, mapping, request);
28 if (!errors.isEmpty()) {
29 saveErrors(request, errors);
30 }
31 if (af != null) return af;
32
33 log.debug("execute: Forward was: " + ListIssuesActionUtil.FWD_LIST_ISSUES);
34 return mapping.findForward(ListIssuesActionUtil.FWD_LIST_ISSUES);
35 }
36
37 }