File Associations

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
spunogAsked:
Who is Participating?
 
CEHJConnect With a Mentor Commented:
This, if not impossible, is not practicable. Nor should it be really if you think about it
0
 
armoghanCommented:
In JSP you can do this
<%@ page language="java" contentType="text/vnd.wap.wml" %>
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
CEHJCommented:
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
 
CEHJCommented:
You can also look at assoc and ftype commands. Whether this information will filter through to the browsers is another matter.
0
 
spunogAuthor Commented:
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
 
CEHJCommented:
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
 
spunogAuthor Commented:
What about on Uinx ? Unix has no registry right? How are file associations set with it?
0
 
CEHJCommented:
There is no standardization on Unix. What is your motivation here?
0
 
spunogAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.