return new ActionForward(buildSummaryPdfGeneratorURL(request, getCandidacy(request)), true);
}
public ActionForward showSummaryFile(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
HttpServletResponse response) {
CandidacySummaryFile file = getCandidacy(request).getSummaryFile();
response.reset();
try {
response.getOutputStream().write(file.getContents());
response.setContentLength(file.getContents().length);
response.setContentType("application/pdf");
response.flushBuffer();
} catch (IOException e) {
logger.error(e.getMessage(), e);
}