This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to open an application in jsp

 
Ricky James
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • 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
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'd have to configure that in your browser.
 
Vivek Ramanath
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic