Meaningless Drivel is fun!*
The moose likes XML and Related Technologies and the fly likes Struts - xml to generate pdf - error with IE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Struts - xml to generate pdf - error with IE" Watch "Struts - xml to generate pdf - error with IE" New topic
Author

Struts - xml to generate pdf - error with IE

Ruchi Kumar
Greenhorn

Joined: Feb 16, 2005
Posts: 7
Hi,

We are creating a J2EE application, working with the struts framework, generating a pdf file using XML, XSLT, fop.

� While opening the file from the local box (using Weblogic server 8, OS: Windows 2000), the file is opening and also getting saved properly.
� While opening the file from the development server(Weblogic server 8, OS: unix box):
  • On the IE browser, the file is not opening. It opens the Adobe Acrobat reader, appears as if it will open the file, but gives the following error message: "There was an error opening this document. The file does not exist." The strange part is that it is successfully saving the same file.
  • On the Netscape browser, the same file from coming from the server hosted on the unix box, is opening properly. Hence, the issue is not related to case of the path etc.


  • Has anybody come across this issue. Can you please suggest what could be done to fix the same. Thanks in advance.

    Regards,
    Ruchi
    Senthil B Kumar
    Ranch Hand

    Joined: Feb 09, 2004
    Posts: 140
    When the Acrobat Reader says such an error, try saving that file (you have mentioned that saving works) to the local machine and open the file seperately instead of opening it via IE.

    I suppose that there ad been some exception while generating the pdf and hence this file is opening before.


    Work like you don't need the money. Love like you've never been hated. Dance like nobody's watching. Sing like nobody's listening. Live like it's Heaven on Earth.
    Currently I Reside Here WEBlog
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Struts - xml to generate pdf - error with IE
     
    Similar Threads
    Export to Excel via a servlet with POI not working under internet explorer 6
    Struts - xml to generate pdf - error with IE
    PDF Download Servlet Problem
    how to download an jpeg and gif file from a servlet to browser
    Export to Excel not working with Internet Explorer HSSF and POI