Tim Moores wrote:That's up to you - maybe include a unique ID in the file name which indicates the client. Could be the ID of the user record in your database (assuming that's how you manage your users).
i am using an unique number
no
HttpSession session = req.getSession();
String n = (String)session.getAttribute("no");
res.setContentType("application/pdf");
PdfWriter.getInstance(document, new FileOutputStream(getServletContext().getRealPath("/resources/a.pdf")));
how can we use this
string variable n to give name of the pdf....that is i have to give n.pdf so how it is possible?