[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: kraml <ml_at_86027.com>
Date: 2004-03-05 11:11:01 CET

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
Received on Fri Mar 5 11:11:40 2004

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