Subversion Repositories SmartDukaan

Rev

Rev 21976 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21976 Rev 21977
Line 24... Line 24...
24
        "contentDisposition", "attachment;filename=\"${filename}\""
24
        "contentDisposition", "attachment;filename=\"${filename}\""
25
    }
25
    }
26
)
26
)
27
public class FileDisplayController extends ActionSupport implements ServletResponseAware{
27
public class FileDisplayController extends ActionSupport implements ServletResponseAware{
28
 
28
 
-
 
29
    /**
-
 
30
	 * 
-
 
31
	 */
-
 
32
	private static final long serialVersionUID = 1L;
29
    //private String type = "application/pdf";
33
	//private String type = "application/pdf";
30
    private String filename;
34
    private String filename;
31
    private InputStream stream;
35
    private InputStream stream;
32
    //private HttpServletRequest request;
36
    //private HttpServletRequest request;
33
    private HttpServletResponse response;
37
    private HttpServletResponse response;
34
	private int id;
38
	private int id;