• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

Opening Word/Excel Applications on Client Machine from Website

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What I mean by the above is, if I have a Java developed website, then if I press a link on a jsp page etc, then is it possible that this link could open an application on the Client machine who is accessing the website through their browser.
For example when I click on the link, Excel, or Word opens on the client machine (if it is installed).
I'm not sure if this is possible, but maybe it is as after all cookies etc can be created on a client machine from a website.
If this is possible then how is this possible, any info and examples would be great etc?
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Word/Excel is installed on the client, then all you should have to do is set the MIME type of the returned document and the browser should take care of it. For Word the MIME type is application/msword, for Excel it is application/vnd.ms-excel.
 
Ranch Hand
Posts: 2937
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question would probably be answered better in the JSP/Servlet forums, but yes, it's relatively straightforward. Essentially, it comes to setting the "content type" and "content disposition" info in the header. Something like this:

Eugene.
[ April 24, 2003: Message edited by: Eugene Kononov ]
 
pie. tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic