Rev 1993 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1993 | Rev 1997 | ||
---|---|---|---|
Line 76... | Line 76... | ||
76 | new 5+0%2Fdocs%2Fapi+Object">Object[]{courseReportDocument}); |
76 | new 5+0%2Fdocs%2Fapi+Object">Object[]{courseReportDocument}); |
77 | return new JSONObject(json); |
77 | return new JSONObject(json); |
78 | } |
78 | } |
79 | 79 | ||
80 | 80 | ||
81 | /* AA 7/12/2017 */ |
- | |
82 | - | ||
83 | /*public JSONObject SaveCourseReportDocument(ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Throwable { |
- | |
84 | - | ||
85 | String courseReportDocument = request.getParameter("courseReportDocument"); |
- | |
86 | - | ||
87 | IServiceManager sm = ServiceManager.getInstance(); |
- | |
88 | String json = (String) sm.execute(RequestUtils.getRequester(request, response), |
- | |
89 | "SaveCourseReportDocument", |
- | |
90 | new Object[]{courseReportDocument}); |
- | |
91 | return new JSONObject(json); |
- | |
92 | }*/ |
- | |
93 | - | ||
94 | - | ||
95 | public ActionForward startEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws 1.5.0/docs/api/java/lang/Throwable.html">Throwable, ServletException |
81 | public ActionForward startEdit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws 1.5.0/docs/api/java/lang/Throwable.html">Throwable, ServletException |
96 | { |
82 | { |
97 | 1.5.0/docs/api/java/lang/String.html">String courseCode = request.getParameter("courseCode"); |
83 | 1.5.0/docs/api/java/lang/String.html">String courseCode = request.getParameter("courseCode"); |
98 | 1.5.0/docs/api/java/lang/String.html">String year = request.getParameter("year"); |
84 | 1.5.0/docs/api/java/lang/String.html">String year = request.getParameter("year"); |
99 | 85 | ||
100 | IServiceManager sm = ServiceManager.getInstance(); |
86 | IServiceManager sm = ServiceManager.getInstance(); |
101 | 1.5.0/docs/api/java/lang/String.html">String json = (1.5.0/docs/api/java/lang/String.html">String) sm.execute(RequestUtils.getRequester(request, response), |
87 | 1.5.0/docs/api/java/lang/String.html">String json = (1.5.0/docs/api/java/lang/String.html">String) sm.execute(RequestUtils.getRequester(request, response), |
102 | "LoadCourseReportDocument", |
88 | "LoadCourseReportDocument", |
103 | new 5+0%2Fdocs%2Fapi+Object">Object[]{courseCode,year}); |
89 | new 5+0%2Fdocs%2Fapi+Object">Object[]{courseCode,year}, |
- | 90 | new 1.5.0/docs/api/java/lang/String.html">String[]{"courseCode", "year"}); |
|
104 | 91 | ||
105 | request.setAttribute("courseReportJson", json); |
92 | request.setAttribute("courseReportJson", json); |
106 | //request.setAttribute("courseCode", courseCode); |
93 | //request.setAttribute("courseCode", courseCode); |
107 | 94 | ||
108 | return mapping.findForward("editCourseReport"); |
95 | return mapping.findForward("editCourseReport"); |