public ActionForward prepareEditBibliographicReference(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
final ExecutionCourse executionCourse = (ExecutionCourse) request.getAttribute("executionCourse");
final String bibliographicReferenceIDString = request.getParameter("bibliographicReferenceID");
if (executionCourse != null && bibliographicReferenceIDString != null && bibliographicReferenceIDString.length() > 0) {
final BibliographicReference bibliographicReference =
findBibliographicReference(executionCourse, bibliographicReferenceIDString);
if (bibliographicReference != null) {
final DynaActionForm dynaActionForm = (DynaActionForm) form;
dynaActionForm.set("title", bibliographicReference.getTitle());
dynaActionForm.set("authors", bibliographicReference.getAuthors());
dynaActionForm.set("reference", bibliographicReference.getReference());
dynaActionForm.set("year", bibliographicReference.getYear());
dynaActionForm.set("optional", bibliographicReference.getOptional().toString());
}
request.setAttribute("bibliographicReference", bibliographicReference);
}
return forward(request, "/teacher/executionCourse/editBibliographicReference.jsp");
}