Is there a way to override the content disposition header for an attachment opened through an xPage URL? I am attempting to open attachments/pdf's in the browser as opposed to the default which is to download/save.
This question was also asked on Wissel's site by Mark Leusink, but I couldn't find an answer.
There are two approaches you can take:
response.setContentType("text/xml");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("content-disposition", "inline; Filename=invoice.pdf");
HTH :-) stw