How to open a pdf file (generated dynamically at user request).

Hi all.
I am working on a web application. which is deployed on a websphere application server 6.0.
In my application a back end job generates a pdf file based on the user input. The file is genrated and placed on server.  I get a logical path to access the file. This path is then indeed sent to a jsp page where it represents in form of link for user to open. If the client browser is mozila or safari, the file opens correctly. However, user do not get the same result if the browser is IE (6 or 7) .  As the file is on server it do not shows a error page and tries to open the file and here the browser shows garbage data on the screen.


The attached code is for the path which I get from the server and then tries to access the link.

I have also tried using sendredirect on the servlet and window.open on the jsp page.
<a href="/chowgule/Documents/Reports_pdf/GEN_REG.pdf" target="_blank" >Download</a>

Open in new window

LVL 1
globalnestAsked:
Who is Participating?
 
globalnestConnect With a Mentor Author Commented:
Hi,
I have found the solution for the problem. I t was due to secutrity issue of the AS/400 .
Application needs to be given some read only access to the file system

Thanks
0
 
SPARC-DESIGNConnect With a Mentor Commented:
0
 
globalnestAuthor Commented:
Hi SPARC-DESIGN,

Thank you for reply.

I have not done any coding for downloading the file. The code shown on the link seems to work fine . However, If I pass on any other file say .pdf or .doc which is externally generated (i.e, not by the internal job ) then it works fine with the code I have given. Is it something related to browser setting?  because, as I have mentioned earlier the files are working fine with mozila or safari but not with IE.

Rahul
0
 
SPARC-DESIGNConnect With a Mentor Commented:
Goodmoring,
I've found this page: http://kb.adobe.com/selfservice/viewContent.do?externalId=328233
Check out point 4. This might solve your problem.
if not, please tell me.
Greets
0
 
globalnestAuthor Commented:
Hello SPARC-DESIGN,
Thank you for your time. I really appreciate the help as it was given when
 it was most needed.
Thank you again for your help.

Rahul Ashar
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.