This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Tomcat and the fly likes about jk connector and jpg files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "about jk connector and jpg files" Watch "about jk connector and jpg files" New topic
Author

about jk connector and jpg files

david hu
Ranch Hand

Joined: Jul 20, 2001
Posts: 143
JkMount /test/*.jsp worker
JkMount /test/*.htm worker

I put the above line in the httpd conf file httpd.conf. The problem is that if in the htm file it refer a picture, say some jpg files. If these files have file extension as .jpg, the browser can correct render it inside the html page. If these files have file extension as .JPG, I mean, capitalized letters, the browser cannot render it inside the html page (basically I got a blank rectangle inside the html page). What i have to do to make it work is to put following line inside the httpd.conf
JkMount /test/*.JPG worker.

For lower case jgp file extension .jpg, I do not even have to put a corresponding line in the config file httpd.conf. These .JPG and .jpg files are under the same dir.

Can someone explain to me, Why?

Thanks

David
Surya Bharadwaj
Greenhorn

Joined: Nov 30, 2005
Posts: 29
Hi David,
If you look up in the conf directory from your apache installation path, you will find a file 'mime.types.default'. There you can see the list of all mime types which are default. Obviously this JPG does not exist in the list. You cam try by adding 'JPG' to it.
Hope this helps.


SCJP 1.4, SCWCD 1.3 , SCBCD 1.3
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: about jk connector and jpg files