• 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

how to open an application in jsp

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

I came across this sample program in Core Servlets and JSPs that uses <%@ page contentType="application/vnd.ms-excel" %> to open some data in an MS Excel file.

I was wondering how I can open a different application, say Open Office Writer.

What would be the value for that instead of "application/vnd.ms-excel"?

Thanks
Ricky
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You'd have to configure that in your browser.
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Rick,
"application/vnd-**" specifies only the mime-type.The file type of the incoming download.It is the browser,that resolves which application needs to be executed while opening a file type "xls".
If the download is of type "application/pdf" then the browser will check whether any file association exists for pdf , if not it will "open the file " dialog box.I think this answers your question.

With warm regards
Vivek
 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Vivek Ramanath:
Rick,
"application/vnd-**" specifies only the mime-type.The file type of the incoming download.It is the browser,that resolves which application needs to be executed while opening a file type "xls".
If the download is of type "application/pdf" then the browser will check whether any file association exists for pdf , if not it will "open the file " dialog box.I think this answers your question.

With warm regards
Vivek



Yes this answers my question Vivek.
Thanks
Ricky
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic