wood burning stoves 2.0*
The moose likes JSP and the fly likes how to open an application in jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "how to open an application in jsp" Watch "how to open an application in jsp" New topic
Author

how to open an application in jsp

Ricky James
Ranch Hand

Joined: Mar 26, 2007
Posts: 83
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

Joined: Jan 10, 2002
Posts: 60802
    
  65

You'd have to configure that in your browser.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Vivek Ramanath
Greenhorn

Joined: Apr 23, 2007
Posts: 4
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

Joined: Mar 26, 2007
Posts: 83
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to open an application in jsp
 
Similar Threads
How to download different files in struits dppending on the file format
how can I control "excel" when I use setContentType("application/vnd.ms-excel")
how can I control "excel" when I use "application/vnd.ms-excel"?
Opening New Window with a different MIME TYPE
display output table in excel file format