Solved

File Associations

Posted on 2004-09-22
12
224 Views
Last Modified: 2010-03-31
How can I set a mime file type in IE and Netscape to tell the browsers to use a certain application of dealing with a file of a certain type ? Can this be done from java code, in an applet and an application ?

Spunog
0
Comment
Question by:spunog
  • 5
  • 3
  • 2
12 Comments
 
LVL 18

Expert Comment

by:armoghan
ID: 12121448
In JSP you can do this
<%@ page language="java" contentType="text/vnd.wap.wml" %>
0
 
LVL 18

Expert Comment

by:armoghan
ID: 12121454
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12121493
If this is possible it will be tricky to say the least. If you're very lucky, the helper applications may take their cue from (in Windows) registry settings. You could theoretically use an application/signed applet to change these. More likely is that this will happen to some extent at application level and you'll need to call an API for each application using JNI or a JNI abstraction layer
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12121507
You can also look at assoc and ftype commands. Whether this information will filter through to the browsers is another matter.
0
 

Author Comment

by:spunog
ID: 12121514
Is it not possible to get IE or netscape to launch an application when it recieves a file type, without the information about the file type being in the registry?
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 86

Expert Comment

by:CEHJ
ID: 12121527
I would have thought pretty unlikely, but as this is not really a Java question, it may be better to ask in different TAs
0
 

Author Comment

by:spunog
ID: 12121553
What about on Uinx ? Unix has no registry right? How are file associations set with it?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 12121563
There is no standardization on Unix. What is your motivation here?
0
 

Author Comment

by:spunog
ID: 12121573
Need to set a file association on Windows/Unix without using the registry. Not all users have admin access in order allow an applet/app to right to the registry. Unfortunately, this causes problems for me.
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 12121604
This, if not impossible, is not practicable. Nor should it be really if you think about it
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For customizing the look of your lightweight component and making it look opaque like it was made of plastic.  This tip assumes your component to be of rectangular shape and completely opaque.   (CODE)
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now