Solved

File Associations

Posted on 2004-09-22
12
227 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
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
iterator/ListIterator approach 17 39
eclipse buid path vs tomcat lib path 10 34
Bot application - advice 3 38
What browser will run Java? 7 61
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

860 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