• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

problem in opening office 2007 document in JSP

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am allowed docx and pptx files to be uploaded in application. But in one module there are three frames in JSP and in one frame i am trying to display attached document. It is working fine for 2003 documents but when i open docx or pptx it shows message to open or save document, when clicking on open nothing happens. I am using same code for other modules and it is working fine there just there is a little change that i open attachment inline here.


in othere applications i use



attachment data are stored in database table. i am fetching that data on jsp and then writes it setting content type properly.



Here i am getting proper content type at JSP.


Its urgent.. Is there any clue to solve this?

Thanks in advance....!!

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the correct content type being set for those documents? Is the browser set to display those document types instead of saving them? That's a client-side setting that the web app has no control over.
 
suchit pandya
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Ulf Dittmer for replying.

This issue is solved.

actually when we cant open 2007 document directly in browser. it need to chage some brower settings. but when i do

response.setHeader("Content-Disposition","attachment; filename="+ fileName); for pptx and docx then document opens properly and other 2 frames are not being load.

also getting another issue in same module for ppt and pptx. when client tryies to open ppt or pptx instead of file name it shows JSP name in whch doument is being uploaded and after clicking open it shows blank ppt or pptx document. This problem is coming at testing server at client side. and working fine at our development center.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic