problem in opening a link to .rar file

Posted by Kenneth on Stack Overflow See other posts from Stack Overflow or by Kenneth
Published on 2011-01-11T08:48:50Z Indexed on 2011/01/11 8:53 UTC
Read the original article Hit count: 429

Filed under:
|
|
|

Hi all, In my jsp, I have a hyperlink linking to a .rar file in the system. Somehow when I clicked on the link, it does not ask users to 'save file' or 'open file' nor using 7zip to open the .rar file. Instead, it just displays some junk characters on the web page. I thought it might be the problem with mime-mapping. So I put an mime-mapping to web.xml with mime-type=application/x-rar-compressed. But it still doesn't work. Do you have any idea what the problem is and how to solve it? Thanks a lot in advance. Other file types have no problem.

Kenneth

© Stack Overflow or respective owner

Related posts about html

Related posts about jsp