case STEP_AFFICHAGE :
			{			
				Ouvrage ouvrage = (Ouvrage) session.getAttribute("ouvrage");		
				response.setContentType("application/pdf");
				response.setHeader("Content-Disposition", "attachment; filename=\"quantitatif.pdf\"");
				try
				{
					OutputStream outputStream = response.getOutputStream();
					SystemeManager systemManager = SystemeManager.getDefaultSystemeManager();
					systemManager.makeCroquisPDF(outputStream, ouvrage);
					return null;
				}
				catch (Exception e)
				{
					hasErrorsOccured = true;
					log.error(e.getMessage());
				}
				// On ne change pas de step
				nextStep = STEP_AFFICHAGE;
				// Pas de forward à déterminer pour retourner un fichier
				forward = null;
				break;
			}
			
		
 
	
Partager