That's a good approach to set up the name in web.xml. It's no problem to link to a pdf extension name, but how can we set the filename automatically, not the constant name?
Thanks 1T3XT info wrote: > Brian Lovett wrote: > >> So I would recommend Googling "Apache http handler". ;) I hope this helps! >> > > Good suggestion. > > I believe the OP is using Servlets and JSP. A more elegant solution > would be to drop JSP (it's NEVER a good idea to create ANY binary file > using JSP, IMHO creating PDF from JSP is a proof of bad design.) > > With Servlets, you define a pattern in your web.xml file. If you define > a pattern with *.pdf, the Servlet creating or manipulating the PDF will > be triggered for every link with a filename that has the extension .pdf. > If I'm not mistaken, that's exactly the name that will be used when > downloading the file. > -- ********************************************** Yunpu Zhu MSc. in Computer Science Department of Mathematics and Computer Science University of Lethbridge Office:(403) 317 - 2831 Email :[email protected] http://www.uleth.ca/~yunpu.zhu ------------------------------------------------------------------------------ _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.itextpdf.com/book/ Check the site with examples before you ask questions: http://www.1t3xt.info/examples/ You can also search the keywords list: http://1t3xt.info/tutorials/keywords/
