This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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: 64629
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