The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file not found error during loop earls Shell Programming and Scripting 3 05-09-2009 05:25 PM
Error 15-the file was not found-update linux10.0 failure nandhusky SuSE 0 01-16-2009 10:36 AM
error while opening files in a directory vinay123 Shell Programming and Scripting 3 06-12-2008 06:21 AM
not found error gander_ss Shell Programming and Scripting 4 05-11-2007 04:24 AM
ERROR -> ./txt1[2]: x: not found k_oops9 Shell Programming and Scripting 2 11-08-2004 09:19 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-26-2009
priyankak priyankak is offline
Registered User
  
 

Join Date: May 2009
Posts: 5
Question Error found while opening any pdf file from IE 6

Hello All,

My application is followed J2ee architecture. It contains Java and jsp codes.
This application generates some reports in pdf format. I am using Weblogic 10.3 and jdk 6.
While I want to open the pdf in IE 6 with service pack 2 , the pdf not showing properly. It comes in byte code. It is not showing any exception also. I have Adobe reader 9 in my m/c.

Can any one suggest me how can I rectify this error from my code.

Thanks in advance.
  #2 (permalink)  
Old 06-26-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Obviously you are doing something wrong in your application code. However unfortunately you have not provided us with sufficient information to enable us to help you.
  #3 (permalink)  
Old 06-28-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.
  #4 (permalink)  
Old 06-29-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,913
Just because you set the MIME type to "application/pdf" does not mean that the output is converted to pdf. Where are you doing the actual pdf transformation?
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 09:43 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0