Re: [iText-questions] Re : name of pdf gets name of servlet

2002-05-17 Thread Bruno Lowagie
Quoting "Cooremans, Rony" <[EMAIL PROTECTED]>: > I ll try the web.xml solution as soon as i solve some other bugs Take a look at this: I have a Servlet called XMLServlet: XMLServlet XMLServlet And I map everything with extension html, pdf, xml, rtf to this Servlet: XMLSe

Re: [iText-questions] Re : name of pdf gets name of servlet

2002-05-17 Thread Bruno Lowagie
Quoting "Cooremans, Rony" <[EMAIL PROTECTED]>: > I ll try the web.xml solution as soon as i solve some other bugs Take a look at this: I have a Servlet called XMLServlet: XMLServlet XMLServlet And I map everything with extension html, pdf, xml, rtf to this Servlet: XMLSe

Re: [iText-questions] Re : name of pdf gets name of servlet

2002-05-17 Thread Bruno Lowagie
Quoting "Cooremans, Rony" <[EMAIL PROTECTED]>: > res.setHeader("Content-Disposition","inline; filename="+fileName); It was something like this, but I don't think I used 'inline'. I think I used: res.setHeader("Content-Disposition","attachment; filename="+fileName); > For html files , t

Re: [iText-questions] Re : name of pdf gets name of servlet

2002-05-17 Thread Cooremans, Rony
This is the code that doesent work - snippet -- public void fileKlaarmaken(java.io.File file, int outputformaat,HttpServletResponse res) throws ServletException, IOException, FileNotFoundException { String fileName = file.getName(); ServletOut

Re: [iText-questions] Re : name of pdf gets name of servlet

2002-05-17 Thread Bruno Lowagie
Quoting "Cooremans, Rony" <[EMAIL PROTECTED]>: > >Define the name in the HTTP Header by > >changing the "Content-Disposition". > >This will probably work in most browsers, > >but not in all. > > Doesent work in communicator 4.79 I'm 99% sure it works in Communicator 4.79. I used it in the past