[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Displaying .java files in browser

From: J.P.Jarolim <junk.mail_at_inode.at>
Date: 2004-03-05 11:24:55 CET

This seems to be a per client resolution anyway when using ie.
IE is configured to view and start files as noted in the client
configuration.
So by default, ie starts word (if installed) in the browser window to show
word files.
Thats noted under windows_explorer/folder_options/file types (rough
translation).
if you have a setting for java files (which is most likely if you have some
type of java editor installed) - i expierienced that ie tries to download
the file. I'd like to know a workaround for that too...

greets from salzburg,

Johannes Jarolim

kraml <ml@86027.com> wrote:

> Brian W. Fitzpatrick wrote:
>>
>> On Mar 4, 2004, at 4:01 PM, Wadsworth, Eric (Contractor) wrote:
>>
>>> Quickie question:
>>>
>>> For convenience, I'd like my developers to see .java files from
>>> within the
>>> browser (MSIE). I edited the httpd.conf and mime.types files on
>>> Apache
>>> 2.0.48 (Solaris), and did apachectl graceful. I tried mudging the
>>> MSIE settings. Still, when I click on a .java file it tries to
>>> download the blasted thing instead of just showing the code in the
>>> browser window like I
>>> want it to.
>>>
>>> Maybe the setting is somewhere in the subversion server? Can anyone
>>> point me
>>> in the right direction?
>>
>>
>> I seem to recall a bug in MSIE where it ignores the mime-type and/or
>> content-disposition sent by the server and determines the mime-type
>> based on the suffix of the file in the URL.
>>
>> Does any other browser exhibit this same behavior?
>>
>> Have you considered offering ViewCVS/SVN support on your server?
>>
>> -Fitz
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>>
>
> Can set the mime-type for IE by regedit:
> in \HKEY_CLASSES_ROOT\.java\ create a string value, name "Content
> Type" value "text/plain"
> But this is a per-client solution.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Mar 5 11:26:31 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.