01: /*
02: * Copyright 2006-2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.kra.budget.web.struts.action;
17:
18: import javax.servlet.http.HttpServletRequest;
19: import javax.servlet.http.HttpServletResponse;
20:
21: import org.apache.struts.action.ActionForm;
22: import org.apache.struts.action.ActionForward;
23: import org.apache.struts.action.ActionMapping;
24: import org.kuali.module.kra.budget.web.struts.form.BudgetForm;
25: import org.kuali.module.kra.budget.web.struts.form.BudgetOverviewFormHelper;
26:
27: /**
28: * This class handles Actions for Research Administration.
29: */
30:
31: public class BudgetOverviewAction extends BudgetAction {
32:
33: private static org.apache.log4j.Logger LOG = org.apache.log4j.Logger
34: .getLogger(BudgetOverviewAction.class);
35:
36: public ActionForward execute(ActionMapping mapping,
37: ActionForm form, HttpServletRequest request,
38: HttpServletResponse response) throws Exception {
39: // We load every time because Overview only has display and not everything as hidden variables.
40: this .load(mapping, form, request, response);
41:
42: BudgetForm budgetForm = (BudgetForm) form;
43:
44: budgetForm
45: .setBudgetOverviewFormHelper(new BudgetOverviewFormHelper(
46: budgetForm));
47:
48: return super.execute(mapping, form, request, response);
49: }
50:
51: }
|