1 | |
|
2 | |
|
3 | |
|
4 | |
|
5 | |
|
6 | |
|
7 | |
|
8 | |
|
9 | |
|
10 | |
|
11 | |
|
12 | |
|
13 | |
|
14 | |
|
15 | |
|
16 | |
package org.kuali.student.enrollment.acal.controller; |
17 | |
|
18 | |
import javax.servlet.http.HttpServletRequest; |
19 | |
import javax.servlet.http.HttpServletResponse; |
20 | |
|
21 | |
import org.kuali.rice.kns.web.spring.controller.UifControllerBase; |
22 | |
import org.kuali.rice.kns.web.spring.form.UifFormBase; |
23 | |
import org.springframework.stereotype.Controller; |
24 | |
import org.springframework.validation.BindingResult; |
25 | |
import org.springframework.web.bind.annotation.ModelAttribute; |
26 | |
import org.springframework.web.bind.annotation.RequestMapping; |
27 | |
import org.springframework.web.servlet.ModelAndView; |
28 | |
|
29 | |
import org.kuali.student.enrollment.acal.form.AcademicCalendarForm; |
30 | |
|
31 | |
|
32 | |
@Controller |
33 | |
@RequestMapping(value = "/acal") |
34 | 0 | public class AcademicCalendarController extends UifControllerBase { |
35 | |
|
36 | |
|
37 | |
|
38 | |
|
39 | |
|
40 | |
@Override |
41 | |
protected UifFormBase createInitialForm(HttpServletRequest request) { |
42 | 0 | return new AcademicCalendarForm(); |
43 | |
} |
44 | |
|
45 | |
@RequestMapping(params = "methodToCall=start") |
46 | |
public ModelAndView start(@ModelAttribute("KualiForm") AcademicCalendarForm academicCalendarForm, BindingResult result, |
47 | |
HttpServletRequest request, HttpServletResponse response) { |
48 | |
|
49 | 0 | return getUIFModelAndView(academicCalendarForm); |
50 | |
} |
51 | |
|
52 | |
} |