The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #3 (permalink)  
Old 06-29-2009
priyankak priyankak is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
Thanks for asking...


I have used the following code in my jsp code.

String fileName =
"abc.pdf";
response.setContentType(
"application/pdf");

response.setHeader(
"Content-Disposition", "inline; filename=\"" + fileName + "\"" );


application.log(
"write baos to reponse ...");
baos.writeTo(response.getOutputStream());

baos.close();

Please let me know if you need any further information....

Thanks in advance.