This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi, welcome to the ranch :)
I am just an amateur in JSP, so no solution from my side. But I ponder that the code is executed on server side, and server does not knows the exact location where to find "D:\\DEVCODE\\FT\\CoreFT\\Product\\onfn\\2012\\11\\26\\99998018_IDV_2012_11_12_02_50_21_6925143_Saba_PhBill.pdf"!!
The biggest gamble will be to ask a question whose answer you know in that it will challenge your theory | www.TechAspire.blogspot.in
Joined: Dec 06, 2012
i can open a pdf file but i couldn't read the text because it is in encoded format.
If I use this response.setHeader ("Content-Disposition", "attachment;filename=Saba_PhBill.pdf"); instead of "inline" it is asking for open or download option.
but my requirement is to open a file in browser when i run the jsp
sabapathi krishnan wrote:my requirement is to open a file in browser when i run the jsp
That can't be a requirement, because that is entirely up to the way the browser is configured. Whether the browser opens it, saves it, or displays a dialog asking the user what to do is entirely determined by the browser settings; the web app has no control over that.