return mapping.findForward("");
}
public ActionForward retrieveApprovedLearningAgreement(ActionMapping mapping, ActionForm form, HttpServletRequest request,
HttpServletResponse response) throws Exception {
final ApprovedLearningAgreementDocumentFile file = getDomainObject(request, "agreementId");
final String hash = request.getParameter("hash");
final MobilityIndividualApplicationProcess process = file.getProcess();
final DegreeOfficePublicCandidacyHashCode candidacyHashCode = process.getCandidacyHashCode();
if (candidacyHashCode.getValue().equals(hash)) {
final byte[] content = file.getContent();
response.setContentLength(content.length);
response.setContentType("application/pdf");
response.addHeader("Content-Disposition", "attachment; filename=" + file.getFilename());
final ServletOutputStream writer = response.getOutputStream();
writer.write(content);
writer.flush();
writer.close();