Solved

File Associations

Posted on 2004-09-22
12
225 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

929 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

13 Experts available now in Live!

Get 1:1 Help Now