77,6 → 77,31 |
cF.setCourseView(cV); |
} |
|
private void loadForPublic(CourseForm cF, HttpServletRequest request, HttpServletResponse response) |
throws Throwable, InvalidFilterException, ServiceManagerException, InvalidFilterExpressionException, IncompatibleFilterException, FilterRetrieveException, NoCookiesException |
{ |
String code = cF.getCourseView().getCode(); |
long id = cF.getCourseView().getId(); |
|
IServiceManager sm = ServiceManager.getInstance(); |
String[] names = new String[]{"serializable"}; |
Object[] args; |
String serviceName; |
if(code != null) |
{ |
args = new Object[]{code,false}; |
serviceName = "LoadCourseByCode"; |
} |
else |
{ |
args = new Object[]{id,true}; |
serviceName = "LoadCourse"; |
} |
CourseView cV = (CourseView) sm.execute(RequestUtils.getRequester(request, response), serviceName, args, names); |
request.setAttribute("CourseView",cV); |
cF.setCourseView(cV); |
} |
|
public ActionForward loadPlan(ActionMapping mapping, |
ActionForm form, |
HttpServletRequest request, |
138,7 → 163,7 |
{ |
try |
{ |
load((CourseForm) form,request,response); |
loadForPublic((CourseForm) form,request,response); |
return mapping.findForward("loadSeparators"); |
} |
catch (FilterChainFailedException e) |